Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: alternatives to if and series of elsif

by gsiems (Chaplain)
on Jul 02, 2005 at 04:04 UTC ( #471871=note: print w/ replies, xml ) Need Help??


in reply to Re^4: alternatives to if and series of elsif
in thread alternatives to if and series of elsif

My bad... I think I misled you a bit. To quote the Benchmark documentation for cmpthese: "This chart is sorted from slowest to fastest, ..." so the higher the number, the faster the code. I don't think the actual number means much of anything, it's the percent difference between the different subs being compared that's important.


Comment on Re^5: alternatives to if and series of elsif
Re^6: alternatives to if and series of elsif
by kiat (Vicar) on Jul 02, 2005 at 04:08 UTC
    You mean
    kutsu 15170/s -- -31% -90% -91% -91% + -93% op_cmp2 229681/s 1414% 945% 44% 43% 32% + --
    op_cmp2 is faster than kutsu?
      Yes, it would appear so.
        I see.

        I had the impression the while loop would be the slowest because of the extra computation involved.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2014-09-30 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls