examples/exec_blank.rb in benchmark_driver-0.6.2 vs examples/exec_blank.rb in benchmark_driver-0.7.0

- old
+ new

@@ -1,14 +1,13 @@ require 'benchmark/driver' Benchmark.driver(runner: :exec) do |x| - x.prelude = <<-EOS + x.prelude <<-EOS class Array alias_method :blank?, :empty? end array = [] EOS - - x.report(script: 'array.empty?') - x.report(script: 'array.blank?') + x.report 'Array#empty?', %{ array.empty? } + x.report 'Array#blank?', %{ array.blank? } x.compare! end