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%        --