Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.