Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Adventures in optimization (or: the good and bad side of being truly bored)

by revdiablo (Prior)
on Aug 02, 2003 at 10:25 UTC ( #280265=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
    my @values;
    ...
        sum(@values) / @values;
    }
    }
    
  2. or download this
            Rate  orig  zaxo   buk  aris cache
    orig  6.26/s    --  -22%  -42%  -80%  -98%
    ...
    buk   10.9/s   74%   36%    --  -66%  -97%
    aris  31.8/s  408%  297%  192%    --  -91%
    cache  368/s 5775% 4496% 3283% 1057%    --
    
  3. or download this
    {
    my %cache;
    ...
        return $timebase + $sec + $min*60 + $hour*60*60;
    }
    }
    
  4. or download this
          s/iter  D::P buggy fixed nonre cache
    D::P    9.08    --  -76%  -77%  -77%  -92%
    ...
    fixed   2.12  328%    2%    --   -2%  -65%
    nonre   2.09  335%    4%    2%    --  -65%
    cache  0.735 1136%  194%  188%  184%    -- 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2019-11-19 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (94 votes). Check out past polls.

    Notices?