3 ms·
> Those benchmarks are for hashing data in the billions of bytes range. Hash tables typically use data in the 1-20 byte range. No, you misunderstood the purpos
by zzzcpan 7y ago
> Those benchmarks are for hashing data in the billions of bytes range. Hash tables typically use data in the 1-20 byte range.
No, you misunderstood the purpose of the project. From the benchmarks, SipHash:
Small key speed test - 1-byte keys - 110.91 cycles/hash
Small key speed test - 2-byte keys - 110.32 cycles/hash
...
Small key speed test - 20-byte keys - 164.79 cycles/hash
wyhash:
Small key speed test - 1-byte keys - 18.00 cycles/hash
Small key speed test - 2-byte keys - 18.00 cycles/hash
...
Small key speed test - 20-byte keys - 21.00 cycles/hash
The whole purpose of smhasher is to help choose hash functions for hash tables and alike implementations.