Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Curious find while comparing grep, map, and smart match...

by BrowserUk (Pope)
on Mar 27, 2013 at 15:48 UTC ( #1025750=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub shuffleEm {
        ( shuffle 1 .. $range )[ 0 .. $uSize ];
    }
    
  2. or download this
    cmpthese( -1, {
        grepGen  => sub{ @grep  = grepGen();  },
    ...
        smartGen => sub{ @smart = smartGen(); },
        shuffleEm=> sub{ @shuffled = shuffleEm() },
    } );
    
  3. or download this
    C:\test>junk
                 Rate   grepGen    mapGen  smartGen shuffleEm
    ...
    mapGen     72.6/s      106%        --      -94%     -100%
    smartGen   1250/s     3439%     1621%        --      -95%
    shuffleEm 26859/s    75977%    36902%     2049%        --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-10-25 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls