Keep It Simple, Stupid | |
PerlMonks |
Re^2: When should I use a dispatch table?by Limbic~Region (Chancellor) |
on Dec 01, 2006 at 00:24 UTC ( [id://587089]=note: print w/replies, xml ) | Need Help?? |
chromatic,
In private /msg with madbombX I made this very point. When benchmarking it is important to eliminate as many factors unrelated to what you are testing as possible. In my benchmark generating code however, no IO comes into play (that I can see anyway). This is strictly determining the difference between a series of equality tests (linear search) and a hash lookup, reference dereference, and nearly empty sub execution. Cheers - L~R
In Section
Meditations
|
|