Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Benchmark, -s versus schwartzian

by CountZero (Bishop)
on Aug 22, 2004 at 21:21 UTC ( #384972=note: print w/replies, xml ) Need Help??

in reply to Benchmark, -s versus schwartzian

On my Windows XP Perl 5.8 system the Schwartzian runs about 5 times as fast as the sort (with the glob inside the loop).

Benchmark: running Ordinary, Schwartzian for at least 2 CPU seconds... Ordinary: 2 wallclock secs ( 0.42 usr + 1.75 sys = 2.17 CPU) @ 5 +.06/s (n=11) Schwartzian: 2 wallclock secs ( 0.68 usr + 1.45 sys = 2.13 CPU) @ 2 +3.91/s (n=51)


"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2016-10-26 04:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (333 votes). Check out past polls.