Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

vek (2312)

  (email not shown publicly)

Journal of vek (2312)

Thursday March 07, 2002
06:29 PM


[ #3363 ]

Following on from last night's shocking benchmark...

Obviously after a good night's sleep I realized that it makes a lot more sense to fix our in-house module so that Date::Manip can be removed from calculating today's date. So, after a quick two line change (now using perl's localtime instead of Date::Manip), I ran the same benchmark again:

Benchmark: timing 20000 iterations of Time::Piece,
Time::Piece: 8 wallclock secs ( 6.44 usr + 0.65 sys = 7.09 CPU) @ 2820.87/s (n=20000) 7 wallclock secs ( 7.64 usr + 0.00 sys = 7.64 CPU) @ 2617.80/s (n=20000)

Now that's more like it :-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.