On Wed, Aug 11, 2010 at 08:39,  <[email protected]> wrote:
snip
> I haven't profiled it as Chas suggested, but I suspect the
> issue is due to the difference in perl versions.
>
> 5.8.8 on Linux
> 5.10.0 on Windows.
>
> My theory is that 5.10.x implemented some optimizations
> that improved the speed of strftime.
snip

Unlikely, I don't remember any big changes to strftime (it is
implemented by Perl_my_strftime in [util.c][0] if you want to check).
I ran your code against 5.12.1, 5.10.0, and 5.8.9 on OS X and got

5.12.1
             Rate strftime   manual
strftime  69591/s       --     -67%
manual   212384/s     205%       --

5.10.0
             Rate strftime   manual
strftime  63621/s       --     -69%
manual   203558/s     220%       --

5.8.9
             Rate strftime   manual
strftime  62421/s       --     -65%
manual   178641/s     186%       --

 [0]: http://perl5.git.perl.org/perl.git/history/HEAD:/util.c

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to