Ruby Benchmark module: meanings of “user”, “system”, and “real”?
>> 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)
These are the same times that the Unix time command or other typical benchmarking tools would report:
user: the amount of time spent executing userspace code (i.e.: your code),