3 ms·
These benchmarks are out of date -- Rust recently updated its SipHash impl from Sip2-4 to Sip1-3, making it actually the fastest for 8-64 bytes in some workload
by Gankro 10y ago
These benchmarks are out of date -- Rust recently updated its SipHash impl from Sip2-4 to Sip1-3, making it actually the fastest for 8-64 bytes in some workloads (looking at the hashers outside of the context of using them in a map gives deceptive results).
(I need to get clearance to post updated results)
- aidenn0 10y agoGood to know. The page I posted was nice in that it listed both (and included BTree for a comparison). I know nothing about how the benchmarks were run, but the fact that it shows varying sizes and shows hashes both in isolation and in a map gave me confidence that someone who knows what they were doing was running the show. I think not looking at both the bare hash performance and the map performance is a bad idea because there are a lot more variables involved testing against a Map, but poor distribution (which ought not be an issue with anything except FNV on that graph) could make a fast hash not useful.