On Wed, Aug 17, 2005 at 12:00:18PM -0700, Philippe M. Chiasson wrote:
> This somewhat simplistic benchmark seems to indicate there actually is a 
> performance hit to using that form of my statement

<snip>

> $> perl-5.8.6 bench-my.pl
> declared 127166/s       --      -6%
> normal   134590/s       6%       --

$ perl5.8.6 ~/tmp/foo.plx
             Rate declared   normal
declared 162068/s       --      -1%
normal   163959/s       1%       --
$ perl5.8.6 ~/tmp/foo.plx
             Rate declared   normal
declared 162444/s       --      -0%
normal   162474/s       0%       --
$ perl5.8.6 ~/tmp/foo.plx
             Rate declared   normal
declared 162103/s       --      -0%
normal   162893/s       0%       --
$ perl5.6.2 ~/tmp/foo.plx
Benchmark: running declared, normal, each for at least 15 CPU seconds...
  declared: 19 wallclock secs (15.56 usr +  0.00 sys = 15.56 CPU) @ 119003.86/s 
(n=1851700)
    normal: 18 wallclock secs (15.35 usr +  0.09 sys = 15.44 CPU) @ 121247.47/s 
(n=1872061)
             Rate declared   normal
declared 119004/s       --      -2%
normal   121247/s       2%       --
$ perl5.6.2 ~/tmp/foo.plx
Benchmark: running declared, normal, each for at least 15 CPU seconds...
  declared: 18 wallclock secs (14.92 usr +  0.09 sys = 15.01 CPU) @ 124462.43/s 
(n=1868181)
    normal: 18 wallclock secs (15.55 usr +  0.03 sys = 15.58 CPU) @ 116665.02/s 
(n=1817641)
             Rate   normal declared
normal   116665/s       --      -6%
declared 124462/s       7%       --
$ perl5.6.2 ~/tmp/foo.plx
Benchmark: running declared, normal, each for at least 15 CPU seconds...
  declared: 17 wallclock secs (15.94 usr +  0.00 sys = 15.94 CPU) @ 120326.35/s 
(n=1918002)
    normal: 16 wallclock secs (15.62 usr +  0.03 sys = 15.65 CPU) @ 120341.15/s 
(n=1883339)
             Rate declared   normal
declared 120326/s       --      -0%
normal   120341/s       0%       --



No significant difference from where I'm sitting.  Different OSs, different
compilers, different versions of Perl and a heavy dose of Benchmark.pm 
flutter.


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
Don't try the paranormal until you know what's normal.
        -- "Lords and Ladies" by Terry Prachett

Reply via email to