Sha256: 43b80f09e09c0f2b56f86a0589a4f88d0b7a2189bfcaa1995ceb52a3420887c3

Contents?: true

Size: 479 Bytes

Versions: 34

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

feature 'Large questionnaires', benchmark: true do
  scenario 'should be fast to build from DSL' do
    Quby::Questionnaires::DSL.build('vlq') do
      title 'VLQ'

      (1..2000).each do |i|
        question :"v_#{i}", type: :radio do
          title "Question #{i}"
          (1..10).each do |j|
            option :"a#{j}", value: j, description: "Q#{i} Option #{j}"
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
quby-5.6.6 spec/benchmarks/large_questionnaire_spec.rb
quby-5.6.5 spec/benchmarks/large_questionnaire_spec.rb
quby-5.6.3 spec/benchmarks/large_questionnaire_spec.rb
quby-5.6.2 spec/benchmarks/large_questionnaire_spec.rb
quby-5.6.1 spec/benchmarks/large_questionnaire_spec.rb
quby-5.6.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.5.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.4.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.3.1 spec/benchmarks/large_questionnaire_spec.rb
quby-5.3.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.2.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.1.3 spec/benchmarks/large_questionnaire_spec.rb
quby-5.1.2 spec/benchmarks/large_questionnaire_spec.rb
quby-5.1.1 spec/benchmarks/large_questionnaire_spec.rb
quby-5.1.0 spec/benchmarks/large_questionnaire_spec.rb
quby-5.0.5 spec/benchmarks/large_questionnaire_spec.rb
quby-5.0.4 spec/benchmarks/large_questionnaire_spec.rb
quby-5.0.3 spec/benchmarks/large_questionnaire_spec.rb
quby-5.0.2 spec/benchmarks/large_questionnaire_spec.rb
quby-5.0.1 spec/benchmarks/large_questionnaire_spec.rb