Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Speed/Efficiency tweaks for a fannkuch benchmark script?

by robin (Chaplain)
on Dec 01, 2005 at 23:35 UTC ( [id://513483]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub fannkuch {
        my ( $a, $level, $split ) = ( @_, 0, 1 );
    ...
        } while $index--;
        return $maxflips;
    }
    
  2. or download this
    [rpc142: /tmp]$ diff --side-by-side -W 80 fann-char-orig.out fann-char
    +.out
    Pfannkuchen(1) = 0 for:                 Pfannkuchen(1) = 0 for:
    ...
    Pfannkuchen(10) = 38 for:               Pfannkuchen(10) = 38 for:
    59186210473                             59186210473
    58.118665 elapsed seconds.            | 54.24672 elapsed seconds.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found