Sha256: 36252b884c15cc80e00fb9b0af74dafa6cda1f1c7ec8c67266705791a8506ac2

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

require 'benchmark/driver'

Benchmark.driver do |x|
  x.prelude <<-EOS
    large_a = "Hellooooooooooooooooooooooooooooooooooooooooooooooooooo"
    large_b = "Wooooooooooooooooooooooooooooooooooooooooooooooooooorld"

    small_a = "Hello"
    small_b = "World"
  EOS

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
benchmark_driver-0.8.6 examples/eval_interpolation.rb
benchmark_driver-0.8.5 examples/eval_interpolation.rb
benchmark_driver-0.8.4 examples/eval_interpolation.rb
benchmark_driver-0.8.3 examples/eval_interpolation.rb
benchmark_driver-0.8.2 examples/eval_interpolation.rb
benchmark_driver-0.8.1 examples/eval_interpolation.rb
benchmark_driver-0.8.0 examples/eval_interpolation.rb
benchmark_driver-0.7.2 examples/eval_interpolation.rb
benchmark_driver-0.7.1 examples/eval_interpolation.rb
benchmark_driver-0.7.0 examples/eval_interpolation.rb