News for hackers. Stuff that matters.
Re:How to write slow Rust code by xondono on Monday August 02, 2021 @12:29PM (#28038828)
It might be just the write up, but the article reads like he was playing with the benchmarks until he got a result where Java was faster.

I don’t think anything malicious has happened, just pointing out that benchmarking is hard, and changing parameters just to see what happens is not benchmarking.

I haven’t gone deep enough into the code and the problem, but it looks like this:

   What if we swap the Rust HashMap implementation, as they say the standard one I was using applies a cryptographically-safe hash that the JVM doesn’t
Is quite a distinction, especially for the latter cases with lengthier phone numbers.

There are no comments on this comment yet.