Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Algorithm Efficiency vs. Specialized Hardware?

by t0mas (Priest)
on Jun 20, 2000 at 14:27 UTC ( [id://18966]=note: print w/replies, xml ) Need Help??


in reply to Algorithm Efficiency vs. Specialized Hardware?

Win2k on P233/128Mb RAM.
Benchmark: timing 1000000 iterations of Grep, Max, Ternary... Grep: 9 wallclock secs (10.02 usr + 0.00 sys = 10.02 CPU) @ 99 +760.57/s (n=1000000) Max: 21 wallclock secs (20.92 usr + 0.00 sys = 20.92 CPU) @ 47 +801.15/s (n=1000000) Ternary: 22 wallclock secs (21.31 usr + 0.00 sys = 21.31 CPU) @ 46 +926.33/s (n=1000000) This is perl, v5.6.0 built for MSWin32-x86-multi-thread
Linux RH6.0 on same machine (but different perl).
Benchmark: timing 1000000 iterations of Grep, Max, Ternary... Grep: 8 wallclock secs ( 8.39 usr + 0.00 sys = 8.39 CPU) Max: 26 wallclock secs (25.82 usr + 0.00 sys = 25.82 CPU) Ternary: 27 wallclock secs (25.67 usr + 0.00 sys = 25.67 CPU) This is perl, version 5.005_03 built for i386-linux


/brother t0mas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found