Sha256: 86abfbcd0acc0091dd6a8fabfb6e5fcdac69829518aa98087d62186fbaf9eb84

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 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', script: '"#{large_a}, #{large_b}!"')
  x.report('small', script: '"#{small_a}, #{small_b}!"')
  x.compare!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
benchmark_driver-0.6.2 examples/exec_interpolation.rb