3 ms·
From what I see Farmhash is still faster on IA32/AMD64 architectures (although they need to leverage the AES instruction for that, granted).
by shin_lao 8y ago
From what I see Farmhash is still faster on IA32/AMD64 architectures (although they need to leverage the AES instruction for that, granted).
- rurban 8y agoSome non-portable hashes are still faster, sure. But for a general hash it's remarkably simple, good and fast.
- jandrewrogers 8y agoAlgorithms using AES intrinsics are generally fastest at all key sizes now. For small keys, the AquaHash[0] algorithm is extremely fast, and several algorithms (e.g. MeowHash[1] and the aforementioned AquaHash) are essentially at the hardware limits for large keys. Algorithms like wyhash are useful for things like embedded CPUs without AES support, but if you are targeting x86/ARM then AES is often a better choice. [0] https://github.com/jandrewrogers/AquaHash https://github.com/jandrewrogers/AquaHash [1] https://github.com/cmuratori/meow_hash https://github.com/cmuratori/meow_hash