Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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)

CountZero

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


Comment on Re: Benchmark, -s versus schwartzian
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (16)
As of 2015-07-29 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls