Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 taking refuge in the Monastery: (15)
As of 2015-07-28 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls