2 ms·
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 compil
by kouteiheika 6y ago
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.