2 ms·
I even have a little method in my .pryrc that lets me easily benchmark on the fly in the console def benchmark_time(repetitions = 100, &block) require 'bench
by llamataboot 6y ago
I even have a little method in my .pryrc that lets me easily benchmark on the fly in the console
def benchmark_time(repetitions = 100, &block)
require 'benchmark'
Benchmark.bm{ |b| b.report{ repetitions.times(&block) } }
end