4 ms·
> 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 w
by 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.