Adds a Benchmark to simulate a real use on storage operators

This commit is contained in:
Vitor Pamplona
2025-12-19 17:29:23 -05:00
parent 8d15f0478f
commit 664f0d0d59
@@ -78,6 +78,15 @@ class MurMurBenchmark {
}
}
@Test
fun hash128StringHalfIncludeEncoding() {
val hasher = MurmurHash3()
val key = RandomInstance.randomChars(64)
benchmarkRule.measureRepeated {
hasher.hash128x64Half(key.encodeToByteArray(), hasher.hash128x64Half("e".encodeToByteArray(), 293L))
}
}
@Test
fun hash128With47Bytes() {
val hasher = MurmurHash3()