Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    use Benchmark ();
    
  2. or download this
    sub test_arr  { my @arr = @_;       $a = join('|', @arr); }
    sub test_ref  { my @arr = @{$_[0]}; $a = join('|', @arr); }
    sub test_ref2 {                     $a = join('|', @_);   }
    
  3. or download this
    {
       my @tiny = qw( abc def ghi );
    ...
    __END__
    output
    ======
    
  4. or download this
    TINY ARRAY
    
    ...
    ref     850/s     --    -0%   -99%
    arr     850/s     0%     --   -99%
    ref2 148539/s 17383% 17381%     --