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.
  • Comment on Re^3: substrings that consist of repeating characters

Replies are listed 'Best First'.
Re^4: substrings that consist of repeating characters
by Eily (Monsignor) on Sep 29, 2020 at 15:13 UTC

    Yes indeed. Benchmarking correctly is hard :)