Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: GeoSite & GeoIP #443

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove v2ray.com
  • Loading branch information
AkinoKaede committed May 1, 2021
commit ec9f19039e22e57d2b4dd7597ac98c6c28f87eb1
4 changes: 2 additions & 2 deletions common/matcher/str/benchmark_test.go
Original file line number Diff line number Diff line change
@@ -11,13 +11,13 @@ import (
func BenchmarkACAutomaton(b *testing.B) {
ac := NewACAutomaton()
for i := 1; i <= 1024; i++ {
ac.Add(strconv.Itoa(i)+".v2ray.com", Domain)
ac.Add(strconv.Itoa(i)+".xray.com", Domain)
}
ac.Build()

b.ResetTimer()
for i := 0; i < b.N; i++ {
_ = ac.Match("0.v2ray.com")
_ = ac.Match("0.xray.com")
}
}