For (really hardcore) optimizing, the current bleadperl has Porting/bench.pl by dave_the_m, which uses the cachegrind tool to count the CPU cycles executed for a benchmark. It's mostly intended for benchmarking perl itself, but I guess it could well be used for microbenchmarking what approach is faster, after having arrived at a minimal op count.
In reply to Re^7: Speed Improvement (insignificant)
by Corion
in thread Speed Improvement
by Nar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |