in reply to
Benchmark made easy
I find that it's better to specify seconds instead of iterations:
timethese(-4, { ... });
[download]
will run each of the code snippets/subs for at least 4 seconds. This way you don't have to adjust iterations.
Comment on
Re: Benchmark made easy
Download
Code
In Section
Cool Uses for Perl