You passed -5 to timethese, which means it should run the benchmark not for a specific number of iterations, but for a specific number of seconds. This is why you see that the wallclock for both "enum" and "list" is exactly 5 seconds. I can't tell why "enum" uses more sys time without seeing the code, but the important bit is that both run for at least 5 cpu secondsSo what is the best way to show the speed comparison in terms of it's time and not iteration/time?
In reply to Re^2: Interpreting Benchmark 'cmpthese' and 'timethese'
by neversaint
in thread Interpreting Benchmark's "cmpthese" and "timethese"
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |