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

Re: The High Price of Golf, and A Surprise

by bart (Canon)
on Sep 07, 2002 at 09:09 UTC ( [id://195859]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    cmpthese(
        $count,
    ...
          f_cmp     => sub { @sfl = sort { $a cmp $b } @afl },
          i_cmp     => sub { @sin = sort { $a cmp $b } @ain },
        });
    
  2. or download this
    Benchmark: timing 300 iterations of f_alpha, f_cmp, f_owtdi, f_sship, 
    +i_alpha, i_cmp, i_owtdi, i_sship...
       f_alpha: 26 wallclock secs (25.92 usr +  0.00 sys = 25.92 CPU) @ 11
    +.57/s (n=300)
    ...
    i_alpha 14.5/s     76%     71%     25%     25%      0%      --    -18%
    +    -24%
    f_sship 17.7/s    116%    110%     53%     53%     23%     23%      --
    +     -6%
    i_sship 18.9/s    130%    124%     63%     63%     31%     31%      7%
    +      --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found