Sha256: c6d62c96fba781f0434f153e2a30579d3b52a11cfe6b6107f368ed241f4a3e0e

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

require 'benchmark/driver'

Benchmark.driver(runner: :exec) 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

8 entries across 8 versions & 1 rubygems

Version Path
benchmark_driver-0.5.1 examples/exec_interpolation.rb
benchmark_driver-0.5.0 examples/exec_interpolation.rb
benchmark_driver-0.4.5 examples/exec_interpolation.rb
benchmark_driver-0.4.4 examples/exec_interpolation.rb
benchmark_driver-0.4.3 examples/exec_interpolation.rb
benchmark_driver-0.4.2 examples/exec_interpolation.rb
benchmark_driver-0.4.1 examples/exec_interpolation.rb
benchmark_driver-0.4.0 examples/exec_interpolation.rb