Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Optimizing existing Perl code (in practise)

by RMGir (Prior)
on Aug 20, 2002 at 12:18 UTC ( [id://191442]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
                 'direct'   => sub {direct(1,2,3,4,5,6);},
             }
         );
    
  2. or download this
    $ perl testSubs.pl
    Benchmark: running assigner, direct, shifter, each for at least 2 CPU 
    +seconds...
    ...
    shifter  294563/s       --     -23%     -53%
    assigner 384577/s      31%       --     -39%
    direct   629222/s     114%      64%       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2024-03-28 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found