http://qs321.pair.com?node_id=799785


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)))