text_combined: andy lester kngfpetdancecom db3 cmpthese 1000000 regex sub return 1 x substr sub return 1 substrx01 rate regex substr regex 729927s 11 substr 819672s 12 dunno 586 looks like mellab cat timer usrbinperl use strict use warnings use benchmark qw cmpthese timethese foo bar x timethese 50_000_000 substr sub x 1 substr foo 1 eq regexy sub x 1 foo mellab timer benchmark timing 50000000 iterations regexy substr regexy 9 wallclock secs 816 usr 003 sys 819 cpu 610500611s n50000000 substr 11 wallclock secs 1032 usr 002 sys 1030 cpu 485436893s n50000000 andy lester kngfpetdancecom wwwpetdancecom aimpetdance wed 06 aug 2008 071453 0500 pathtools beta testing