Help for this page

Select Code to Download


  1. or download this
    tilly gives: 1600
    chetlin gives: 1600
    Benchmark: running chetlin, tilly, each for at least 5 CPU seconds...
       chetlin:  9 wallclock secs ( 5.52 usr +  0.00 sys =  5.52 CPU) @ 33
    +3.70/s (n=1842)
         tilly: 10 wallclock secs ( 5.09 usr +  0.00 sys =  5.09 CPU) @ 10
    +4.52/s (n=532)
    
  2. or download this
    my @patterns=qw/foo bar baz blarch/;
    my $tilly=qr/(@{[join "|",@patterns]})/;
    ...
    timethese(-5, { tilly   => \&tilly,
                    chetlin => \&chetlin,
    });