Experimenting with Ruby's Benchmark module...
>> Benchmark.bm(7) { |b| b.report('Report:') { s = '' ; 10000.times { s += 'a' } } }
user system total real
Report: 0.150000 0.010000 0.160000 ( 0.156361)
What are the meanings of "user", "system", and "real"?
These are the same times that the Unix time
command or other typical benchmarking tools would report:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With