Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Recursion: An example of Looping and Recursion

by extremely (Priest)
on Nov 16, 2000 at 11:08 UTC ( #41948=note: print w/ replies, xml ) Need Help??


in reply to Re: Recursion: An example of Looping and Recursion
in thread Recursion

Whoop! a benchmark question! Ahhh...

# for 45, 5
         Rate  loop recur
loop  30118/s    --  -37%
recur 47528/s   58%    --

# for 296, 111
         Rate recur  loop
recur  9303/s    --  -36%
loop  14426/s   55%    --

# for 298, 111
        Rate recur  loop
recur 4672/s    --  -45%
loop  8445/s   81%    --

Interesting what a win the loop version is on that last one...

--
$you = new YOU;
honk() if $you->love(perl)


Comment on Re: Re: Recursion: An example of Looping and Recursion

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (15)
As of 2014-07-11 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (230 votes), past polls