http://www.perlmonks.org?node_id=11122334


in reply to Re^2: substrings that consist of repeating characters
in thread substrings that consist of repeating characters

Note also that the benchmark results may be different for other input strings. The one in the OP is short and all the same-char substrings are also short, so for instance, results may be different if you use a long string containing long same-char substrings.