in reply to Re^2: Performance problems on splitting long strings
in thread Performance problems on splitting long strings
Your benchmark is totally broken.
When your _regex() function runs the first time, it complete destroys $string; and everytime after that the regex is operating on an empty string and thus runs very quicly. Ditto, every other test that runs after the first run of _regex().
|
|---|