Closed JuanitoFatas closed 9 years ago
Now we could pass symbol to #report like the following :blush: :
#report
require 'benchmark/ips' data = [*0..100_000_000] Benchmark.ips do |x| x.report(:find) { data.find { |number| number > 77_777_777 } } x.report(:bsearch) { data.bsearch { |number| number > 77_777_777 } } end
:+1: Just ran into this and was surprised it didn't work.
:beers:
Now we could pass symbol to
#report
like the following :blush: :