Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
Replies are listed 'Best First'.
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 studying the Monastery: (16)
As of 2015-07-29 18:12 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 (267 votes), past polls