Chas. Owens wrote: > On Wed, Aug 11, 2010 at 08:39, <r...@i.frys.com> 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
That's interesting, and quite a bit of difference from my runs. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/