in reply to Re^3: Interpreting Benchmark 'cmpthese' and 'timethese'
in thread Interpreting Benchmark's "cmpthese" and "timethese"
You could run the benchmark for, say, 2000 iterations instead of for 5 seconds.How do you do that? Because in the example I always see that they use negative value for $count.
What value should I pass for $count here?timethese($count, { 'Name1' => sub { ...code1... }, 'Name2' => sub { ...code2... }, });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Interpreting Benchmark 'cmpthese' and 'timethese'
by holli (Abbot) on Aug 28, 2006 at 10:00 UTC | |
|
Re^5: Interpreting Benchmark 'cmpthese' and 'timethese'
by rhesa (Vicar) on Aug 28, 2006 at 10:13 UTC |