优化API命名/优化一处测试用例

This commit is contained in:
刘祥超
2022-08-11 12:44:27 +08:00
parent 9d9ae288bd
commit 85ce63b4d3
5 changed files with 5 additions and 4 deletions

View File

@@ -106,6 +106,7 @@ func BenchmarkIP2RegionLibrary_Lookup(b *testing.B) {
if err != nil {
b.Fatal(err)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
_, _ = library.Lookup("8.8.8.8")