Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

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

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 studying the Monastery: (6)
As of 2016-02-11 06:48 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (361 votes), past polls