Help for this page

Select Code to Download


  1. or download this
    use Memchmark qw(cmpthese);
    
    my @data = 1..$ARGV[0];
    cmpthese(-1, { foo => sub { my @out = foo(@data) },
                   bar => sub { my @out = bar(@data) } });