How to multiply a benchmark
问题 Say I have a benchmark result like so: 0.020000 0.000000 0.020000 ( 0.020197) I'm creating this with something like Benchmark.bm do |x| x.report { run_a_method() } end This represents the time required to call a method foo one time. I want to produce a benchmark which shows the result of running foo 3 times, but only requires calling the method once. This can be done by simply multiplying the values in the first benchmark by 3. Is there any way to do this? Edit I'm not really appreciating the