Help for this page

Select Code to Download


  1. or download this
    use Benchmark;
    
    ...
      }
    }
    });
    
  2. or download this
    Benchmark: timing 100000 iterations of NoOpLoop, regex1, reverse, subs
    +tr...
      NoOpLoop:  2 wallclock secs ( 1.86 usr +  0.00 sys =  1.86 CPU) 
    ...
                 @ 13513.51/s (n=100000)
        substr:  8 wallclock secs ( 8.51 usr +  0.01 sys =  8.52 CPU) 
                 @ 11737.09/s (n=100000)