Benchmarks of various hash algorithms with Ruby.
- Ruby stdlib:
- Gems:
- digest-xxhash (XXH32/XXH64/XXH3)
- murmurhash3 (32/128)
- cityhash (32/64/128)
- openssl (MD5, SHA1, SHA256, SHA512, SHA3)
These algorithms are not all equivalent so don't just blindly pick the fastest one!
See the accompanying blog post for a chart and some more details.