I have a benchmark like follows:
benchmark_result = Benchmark.bm do |x|
x.report { send(test_name) }
end
When I run this, I'm seeing output from two places:
- The
send(test_name)
in thereport
block. I want to continue seeing this output. - The output from the Benchmark block, i.e. the resulting benchmark report is printed to the console. I don't want this to happen.
I've seen from here how to temporarily hide the console output. But the problem is that I want the inner block to continue printing its output. I just don't want to see the benchmark results.