Sha256: fffdea74c7fc9dbcac98f2709cf080ba3d57432c6fa00b3bae30169bb645cdfc
Contents?: true
Size: 260 Bytes
Versions: 3
Compression:
Stored size: 260 Bytes
Contents
require 'benchmark/driver' class Array alias_method :blank?, :empty? end Benchmark.driver do |x| x.prelude %{ array = [] } x.report 'Array#empty?', %{ array.empty? } x.report 'Array#blank?', %{ array.blank? } x.loop_count 10000000 x.compare! end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
benchmark_driver-0.8.6 | examples/eval_blank_loop.rb |
benchmark_driver-0.8.5 | examples/eval_blank_loop.rb |
benchmark_driver-0.8.4 | examples/eval_blank_loop.rb |