Sha256: e9ce2903b775f7222125cb38991923c1382af851f419bc524a3005da4ce51adc

Contents?: true

Size: 338 Bytes

Versions: 19

Compression:

Stored size: 338 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}!" }
end

Version data entries

19 entries across 19 versions & 1 rubygems

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