3 ms·
I've updated now my smhasher results at https://github.com/rurban/smhasher https://github.com/rurban/smhasher including metrohash and xxHash but not FarmHash ye
by rurban 11y ago
I've updated now my smhasher results at https://github.com/rurban/smhasher https://github.com/rurban/smhasher including metrohash and xxHash but not FarmHash yet.
From the good enough hash functions, metrohash are by far the fastest, so they should be the new default on 64bit machines.
On x86_64 and arm8 the crc variants are the best.
For 32bit we are stuck with Murmur still.
- Cyan4973 11y agoIn all tests I know, xxh64 should be about 2x faster than xxh32 on x86_64 systems. Surprisingly, it doesn't match with the readme table.
- rurban 11y agoInteresting, thanks. Sounds legit. I'll recheck again when I'm at home. Maybe the benchmarks got distorted. doc/xxHash32:Small key speed test - 10-byte keys - 35.02 cycles/hash doc/xxHash64:Small key speed test - 10-byte keys - 42.33 cycles/hash