Help for this page

Select Code to Download


  1. or download this
    $ test.pl
               Rate regex  hash
    ...
               Rate  hash regex
    hash  1043950/s    --   -1%
    regex 1054296/s    1%    --
    
  2. or download this
    use Time::HiRes;
    use Benchmark ':all';
    ...
       hash  => 'hash()',
       regex => 'regex()',
    });