ogxd / gxhash

The fastest hashing algorithm 📈
https://docs.rs/gxhash
MIT License
798 stars 27 forks source link

Reduce throughput benchmark biais with more fencing #102

Closed ogxd closed 1 week ago

ogxd commented 1 week ago

Context

Throughput benchmark results are favoring gxhash for most input sizes and platforms, however the results are off when comparing with a criterion.rs throughput benchmark for small input size. A suspicion is that the byte code is so small that it is entirely inlined and part of it is optimized away in the benchmark, producing biais.

Todo