Sha256: 5f92d5fe36c87ee2b9515911c81b49f2610d166d9bbbaa0ec77067892b888375

Contents?: true

Size: 259 Bytes

Versions: 16

Compression:

Stored size: 259 Bytes

Contents

require 'benchmark_driver'

Benchmark.driver do |x|
  x.prelude <<-EOS
    class Array
      alias_method :blank?, :empty?
    end
    array = []
  EOS
  x.report 'Array#empty?', %{ array.empty? }
  x.report 'Array#blank?', %{ array.blank? }
  x.compare!
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
benchmark_driver-0.10.12 examples/exec_blank.rb
benchmark_driver-0.10.11 examples/exec_blank.rb
benchmark_driver-0.10.10 examples/exec_blank.rb
benchmark_driver-0.10.9 examples/exec_blank.rb
benchmark_driver-0.10.8 examples/exec_blank.rb
benchmark_driver-0.10.7 examples/exec_blank.rb
benchmark_driver-0.10.6 examples/exec_blank.rb
benchmark_driver-0.10.5 examples/exec_blank.rb
benchmark_driver-0.10.4 examples/exec_blank.rb
benchmark_driver-0.10.3 examples/exec_blank.rb
benchmark_driver-0.10.2 examples/exec_blank.rb
benchmark_driver-0.10.1 examples/exec_blank.rb
benchmark_driver-0.10.0 examples/exec_blank.rb
benchmark_driver-0.9.2 examples/exec_blank.rb
benchmark_driver-0.9.1 examples/exec_blank.rb
benchmark_driver-0.9.0 examples/exec_blank.rb