Skip to content

Commit 7392529

Browse files
committed
chore: add a confused benchmark for wildcard
1 parent dc52c38 commit 7392529

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

component/wildcard/wildcard_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ func FuzzMatch(f *testing.F) {
9494
}
9595
})
9696
}
97+
98+
func BenchmarkMatch(b *testing.B) {
99+
for i := 0; i < b.N; i++ {
100+
Match(
101+
"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",
102+
"*.cdn-*-*.video**.com",
103+
)
104+
}
105+
}

0 commit comments

Comments
 (0)