Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw(cmpthese);
    
    ...
    regex  15316/s     --   -43%   -74%
    unpack 26935/s    76%     --   -54%
    substr 58514/s   282%   117%     --
    
  2. or download this
    my $str = "wwibblewibblewibblewibbleibblewibblewibblewibble\x{20ac}";
    
    ...
    regex  14222/s     --   -35%   -51%
    unpack 21976/s    55%     --   -24%
    substr 29020/s   104%    32%     --