4 ms·
wyhash crate is not wyhash itself. It depends on the skill of the translator and the wyhash version. wyhash has been improved significantly version by version.
by wangyi_fudan 6y ago
wyhash crate is not wyhash itself. It depends on the skill of the translator and the wyhash version. wyhash has been improved significantly version by version. Also ahash should submit a PR to smhasher and play with ~100 other hash functions there.
- kouteiheika 6y agoOkay, I've quickly added the new wyhash to ahash's benchmark suite (the original C version converted to Rust with c2rust so that it can be inlined by the compiler) and reran the benchmarks; here are the results on my machine: 1kb string: - ahash: 23.0ns - wyhash (rust crate): 54.2ns - wyhash (new): 34.8ns u64: - ahash: 0.69ns - wyhash (rust crate): 1.6ns - wyhash (new): 0.97ns So the new version is faster, but it looks like ahash is still state-of-the-art when it comes to speed.