Sha256: c3bf8cb54a89af40fc3d9d1592cfedcd358cd4aed490d09bfab0afabde465f50

Contents?: true

Size: 231 Bytes

Versions: 12

Compression:

Stored size: 231 Bytes

Contents

require 'benchmark_driver'

Benchmark.driver(output: :simple) do |x|
  x.prelude <<-EOS
    class Array
      alias_method :blank?, :empty?
    end
    array = []
  EOS
  x.report %{ array.empty? }
  x.report %{ array.blank? }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
benchmark_driver-0.10.8 examples/exec_blank_simple.rb
benchmark_driver-0.10.7 examples/exec_blank_simple.rb
benchmark_driver-0.10.6 examples/exec_blank_simple.rb
benchmark_driver-0.10.5 examples/exec_blank_simple.rb
benchmark_driver-0.10.4 examples/exec_blank_simple.rb
benchmark_driver-0.10.3 examples/exec_blank_simple.rb
benchmark_driver-0.10.2 examples/exec_blank_simple.rb
benchmark_driver-0.10.1 examples/exec_blank_simple.rb
benchmark_driver-0.10.0 examples/exec_blank_simple.rb
benchmark_driver-0.9.2 examples/exec_blank_simple.rb
benchmark_driver-0.9.1 examples/exec_blank_simple.rb
benchmark_driver-0.9.0 examples/exec_blank_simple.rb