|
|
|
|
|
by llamataboot
2229 days 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 |
|