优化xxhash和fnv相关代码

This commit is contained in:
刘祥超
2024-04-18 18:25:33 +08:00
parent 96cb816200
commit 91f817d2d2
12 changed files with 61 additions and 18 deletions
+8
View File
@@ -22,3 +22,11 @@ func BenchmarkHashString(b *testing.B) {
}
})
}
func BenchmarkHashString_Long(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
_ = fnv.HashString("HELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLD")
}
})
}