Help for this page

Select Code to Download


  1. or download this
    use Benchmark;
    Benchmark::cmpthese(shift, {
    ...
            $b[$j] .= "b" for 1 .. 10000;
        },
    });
    
  2. or download this
    Benchmark: running a, b for at least 1 CPU seconds...
             a:  1 wallclock secs ( 1.03 usr +  0.01 sys =  1.04 CPU) @ 12
    +4.04/s (n=129)
    ...
       Rate    a    b
    a 124/s   -- -35%
    b 192/s  55%   --