Sha256: 0f9432936c347bd99d859873936ba8c833b96ea93ec2801c4e96f11d2a898c04

Contents?: true

Size: 268 Bytes

Versions: 4

Compression:

Stored size: 268 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.output 'markdown'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
benchmark_driver-0.10.16 examples/exec_blank.rb
benchmark_driver-0.10.15 examples/exec_blank.rb
benchmark_driver-0.10.14 examples/exec_blank.rb
benchmark_driver-0.10.13 examples/exec_blank.rb