16 ms·
Added it to smhasher https://github.com/rurban/smhasher/#smhasher https://github.com/rurban/smhasher/#smhasher It may be the fastest rust hash, but certainly n
by rurban 6y ago
Added it to smhasher
https://github.com/rurban/smhasher/#smhasher https://github.com/rurban/smhasher/#smhasher
It may be the fastest rust hash, but certainly not faster than other fast hashes. More like 2x slower.
xxh3, t1ha0, wyhash are all much faster on the 2 machines I tested it on, an old 7 years old Intel i5-2300, and a new Ryzen 3200U.
- kouteiheika 6y ago> It may be the fastest rust hash, but certainly not faster than other fast hashes. More like 2x slower. If it's so much slower then most likely something is wrong. 1) Did you enable the AES instruction when compiling? (IIRC it's disabled by default) 2) When compiling the benchmark did you have cross-language inlining enabled? (IIRC you need to compile your C++ code with a specific version of Clang to get it to inline between Rust and C++)
- rurban 6y agoThat might be it. gcc 10 with lto only, not clang. I also saw a lot if weird rust exception like functions brought into it.