Help for this page

Select Code to Download


  1. or download this
    use File::Slurp;
    use Benchmark qw(cmpthese);
    ...
                 });
    
    sub is { local (@ARGV, $/) = $_[0]; <> };
    
  2. or download this
    $ perl -e 'print "x"x500' > foo
    $ perl benchmark
    ...
         Rate   is   fs
    is 29.5/s   -- -17%
    fs 35.6/s  21%   --