mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-09 03:10:26 +08:00
优化指标统计性能
This commit is contained in:
@@ -14,3 +14,11 @@ func TestHash(t *testing.T) {
|
||||
t.Log(key + " => " + types.String(h))
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkHashString(b *testing.B) {
|
||||
b.RunParallel(func(pb *testing.PB) {
|
||||
for pb.Next() {
|
||||
fnv.HashString("abcdefh")
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user