regexp: MatchString run time could be independent of the string length #39480
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go test -bench=.
https://play.golang.org/p/VD6DFGlxha-
What did you expect to see?
Both benchmarks show about the same ns/op.
What did you see instead?
The difference seems to be constant, but it's a bit surprising.
The text was updated successfully, but these errors were encountered: