Sha256: 1f83ee197db7f3f9863e12e491f5d6d6f2fb18dee32aba9f1f6c0480a25aa868

Contents?: true

Size: 619 Bytes

Versions: 21

Compression:

Stored size: 619 Bytes

Contents

require 'benchmark'

n = 10

Benchmark.benchmark do |bm|
  3.times do
    bm.report do
      n.times do
        `bin/rspec benchmarks/example_spec.rb`
      end
    end
  end
end

# Before autoloading matcher class files
#    0.000000   0.010000   8.800000 (  8.906383)
#    0.010000   0.010000   8.880000 (  8.980907)
#    0.000000   0.010000   8.820000 (  8.918083)
#
# After autoloading matcher class files
#    0.000000   0.010000   8.610000 (  8.701434)
#    0.010000   0.010000   8.620000 (  8.741811)
#    0.000000   0.000000   8.580000 (  8.677235)
#
# Roughly 2.5% improvement in load time (every bit counts!)

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
opal-rspec-1.1.0.alpha3 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-1.1.0.alpha2 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-1.1.0.alpha1 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-1.0.0 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-1.0.0.alpha1 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.8.0 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.8.0.alpha3 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.8.0.alpha2 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.8.0.alpha1 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.7.1 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.7.0 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.6.2 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.7.0.rc.2 rspec-expectations/upstream/benchmarks/autoload_v_require.rb
opal-rspec-0.6.1 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.6.0 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.6.0.beta1 rspec-expectations/benchmarks/autoload_v_require.rb
opal-connect-rspec-0.5.0 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.5.0 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.5.0.beta3 rspec-expectations/benchmarks/autoload_v_require.rb
opal-rspec-0.5.0.beta2 rspec-expectations/benchmarks/autoload_v_require.rb