Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 musing on the Monastery: (12)
As of 2015-07-07 07:27 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 (87 votes), past polls