Help for this page

Select Code to Download


  1. or download this
    use Benchmark 'cmpthese';
    use Regexp::Keep;
    my $s = "abc.def.ghi.jkl";
    ...
      japhy => sub { (my $x = $s) =~ s/.*\K\..*// },
      old   => sub { (my $x = $s) =~ s/(.*)\..*/$1/ },
    });
    
  2. or download this
    old   = 40280.54/s
    japhy = 74338.79/s
    
  3. or download this
    old   =  58188.18/s
    japhy = 102409.25/s