chore: add a confused benchmark for wildcard

This commit is contained in:
wwqgtxx 2025-08-11 18:13:34 +08:00
parent dc52c38179
commit 7392529677

View File

@ -94,3 +94,12 @@ func FuzzMatch(f *testing.F) {
} }
}) })
} }
func BenchmarkMatch(b *testing.B) {
for i := 0; i < b.N; i++ {
Match(
"r4.cdn-aa-wow-this-is-long-a1.video-yajusenpai1145141919810-oh-hell-yeah-this-is-also-very-long-and-sukka-the-fox-has-a-very-big-fluffy-fox-tail-ao-wu-ao-wu-regex-and-wildcard-both-might-have-deadly-back-tracing-issue-be-careful-or-use-linear-matching.com",
"*.cdn-*-*.video**.com",
)
}
}