perl profilers work running additional perl code between every instruction and subroutine call. That introduces overhead and affects performance and timing, sometimes in a no linear fashion. What looks faster under a profiler will actually run slower in normal execution.
So, profilers are good to find hot spoots in code but not to compare different algorithms or implementations.
In reply to Re^2: Clocking Portion of Your Perl Code
by salva
in thread Clocking Portion of Your Perl Code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |