Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: RFC: Sorting IPv4 addresses

by bv (Friar)
on Oct 07, 2009 at 19:05 UTC ( #799785=note: print w/replies, xml ) Need Help??

in reply to Re: RFC: Sorting IPv4 addresses
in thread RFC: Sorting IPv4 addresses

Great information, but did you really mean wins? Your benchmark shows naive coming in dead last, since it's reporting iterations/second. From the documentation,

The COUNT can be zero or negative: this means the minimum number of CPU seconds to run. A zero signifies the default of 3 seconds.


The benchmark output will, however, also tell the number of $code runs/second, which should be a more interesting number than the actually spent seconds.

print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2023-11-29 11:32 GMT
Find Nodes?
    Voting Booth?

    No recent polls found