Re:New Bare Hash Map: 2X-3X Speedup over SOTA
by wangyi_fudan on Monday March 15, 2021 @02:40AM
(#26463148)
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.
[ Parent
| on HN ]
Re:New Bare Hash Map: 2X-3X Speedup over SOTA
by kouteiheika on Monday March 15, 2021 @03:27AM
(#26463361)
Okay, 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.