Hey Jenda,         

My MUA believes you used Pegasus Mail for Windows (v4.02a)
to write the following on Friday, January 10, 2003 at 11:04:07 AM.

JK> According to the benchmarks this one was slightly better

JK>         my ($max) = sort {$b<=>$a} ($x, $y, $z);

I thought "Bob2" was the better one...

        $max = ($max = ($x > $y) ? $x : $y) > $z ? $max : $z;

,----- [ from 3E1EEF07.25135.12C828A@localhost">mid:3E1EEF07.25135.12C828A@localhost ]
|        Bob:  3 wallclock secs ( 2.55 usr +  0.00 sys =  2.55 CPU) 
|                 @ 391696.04/s (n=1000000)
|       Bob2:  2 wallclock secs ( 1.51 usr +  0.00 sys =  1.51 CPU) 
`-----

We will still probably be using "Bob" as it seem easier to read.

btw, thanks for the benchmark test, I may try that on some other code
I have...

-- 
Tim Musson
Flying with The Bat! eMail v1.62 Christmas Edition
Windows 2000 5.0.2195 (Service Pack 2)
Don't meddle in the affairs of dragons./nYou're crunchy and taste good with ketchup.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to