Minor adjustments and new benchmarks

This commit is contained in:
Vitor Pamplona
2025-12-12 19:51:41 -05:00
parent 1a63b77a2f
commit 83d14bd0e3
2 changed files with 22 additions and 3 deletions
@@ -42,10 +42,28 @@ class MurMurBenchmark {
}
}
@Test
fun hash32With39() {
val hasher = MurmurHash3()
val byteArray = RandomInstance.bytes(39)
benchmarkRule.measureRepeated {
hasher.hash(byteArray, 293)
}
}
@Test
fun hash128() {
val hasher = MurmurHash3()
val byteArray = RandomInstance.bytes(32)
benchmarkRule.measureRepeated {
hasher.hash128x64(byteArray, 293L)
}
}
@Test
fun hash128With47Bytes() {
val hasher = MurmurHash3()
val byteArray = RandomInstance.bytes(47)
benchmarkRule.measureRepeated {
hasher.hash128x64(byteArray, 293)
}