Adds MurMur3128bits for x64

This commit is contained in:
Vitor Pamplona
2025-12-12 16:54:34 -05:00
parent 5c01aaf996
commit 95723479d6
3 changed files with 287 additions and 48 deletions
@@ -34,13 +34,20 @@ class MurMurBenchmark {
@get:Rule val benchmarkRule = BenchmarkRule()
@Test
fun hash() {
fun hash32() {
val hasher = MurmurHash3()
val byteArray = RandomInstance.bytes(32)
benchmarkRule.measureRepeated {
hasher.hash(byteArray, 293)
}
}
@Test
fun hash128() {
val hasher = MurmurHash3()
val byteArray = RandomInstance.bytes(32)
benchmarkRule.measureRepeated {
hasher.hash128x64(byteArray, 293)
}
}
}