215 on Rust: I re-ran fast-anything's 116 benchmark
215× on Rust: I re-ran fast-anything's 116× benchmark fast-anything claims a 116× speedup for porting one Python function to Rust. On my 4-core AMD VM I measured 215× end to end — and the function itself ran 677× faster. The catch: most of that multiplier is a property of how slow the Python baseline is on your machine, not of the port. The claim fast-anything (EL4CTEO/fast-anything, 4,907 stars,…
A Python benchmark of a function to find duplicate customer names claimed a 116x speedup when ported to Rust. A reporter ran the benchmark on their own machine and found a much higher figure. Their AMD EPYC 9D25 with 4 cores ran the Python version in 9.22 seconds and the Rust version in 43 milliseconds, a 215x improvement. The 215x figure stemmed from their slower Python baseline compared to the original testing which used a faster machine.
The ported version also ran faster on average, improving CPU time by 117x while wall-clock time improved by 215x. The speedup was partly due to the port being threaded across multiple cores. The reporter also noted the ported algorithm was more efficient than the original Python implementation.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to