Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: search through hash for date in a range

by bfdi533 (Friar)
on Mar 06, 2018 at 18:46 UTC ( [id://1210426]=note: print w/replies, xml ) Need Help??


in reply to Re: search through hash for date in a range
in thread search through hash for date in a range

Boy, there is a huge difference in performance between Date::Manip::Date and Time::Piece ...

[user@host newload]$ ./t-benchdates.pl 500 Benchmark: timing 500 iterations of Date::Manip::Date, Time::Piece... Date::Manip::Date: 124 wallclock secs (119.35 usr + 1.30 sys = 120.65 + CPU) @ 4.14/s (n=500) Time::Piece: 5 wallclock secs ( 3.88 usr + 0.03 sys = 3.91 CPU) @ 1 +27.88/s (n=500)

Certainly a code change I will be making but that leaves the foreach loop through all available ranges as a massive performance hit still ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-20 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found