Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw/timethese/;
    
    ...
    sub flatten {
        ;
    }
    
  2. or download this
    Benchmark: timing 10000 iterations of flatten, straight...
       flatten:  6 wallclock secs ( 5.08 usr +  0.00 sys =  5.08 CPU) @ 19
    +69.28/s (n
    =10000)
      straight:  0 wallclock secs ( 0.00 usr +  0.00 sys =  0.00 CPU)
                (warning: too few iterations for a reliable count)