Sha256: fc8564e18bb78dcdf0fa6cb1ddad4635beba83c948060c113fbd9e3ebe68476d

Contents?: true

Size: 351 Bytes

Versions: 19

Compression:

Stored size: 351 Bytes

Contents

require 'benchmark/driver'

Benchmark.driver do |x|
  large_a = "Hellooooooooooooooooooooooooooooooooooooooooooooooooooo"
  large_b = "Wooooooooooooooooooooooooooooooooooooooooooooooooooorld"

  small_a = "Hello"
  small_b = "World"

  x.report('large') { "#{large_a}, #{large_b}!" }
  x.report('small') { "#{small_a}, #{small_b}!" }
  x.compare!
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
benchmark_driver-0.8.6 examples/call_interpolation.rb
benchmark_driver-0.8.5 examples/call_interpolation.rb
benchmark_driver-0.8.4 examples/call_interpolation.rb
benchmark_driver-0.8.3 examples/call_interpolation.rb
benchmark_driver-0.8.2 examples/call_interpolation.rb
benchmark_driver-0.8.1 examples/call_interpolation.rb
benchmark_driver-0.8.0 examples/call_interpolation.rb
benchmark_driver-0.7.2 examples/call_interpolation.rb
benchmark_driver-0.7.1 examples/call_interpolation.rb
benchmark_driver-0.7.0 examples/call_interpolation.rb
benchmark_driver-0.6.2 examples/call_interpolation.rb
benchmark_driver-0.5.1 examples/call_interpolation.rb
benchmark_driver-0.5.0 examples/call_interpolation.rb
benchmark_driver-0.4.5 examples/call_interpolation.rb
benchmark_driver-0.4.4 examples/call_interpolation.rb
benchmark_driver-0.4.3 examples/call_interpolation.rb
benchmark_driver-0.4.2 examples/call_interpolation.rb
benchmark_driver-0.4.1 examples/call_interpolation.rb
benchmark_driver-0.4.0 examples/call_interpolation.rb