4 ms·
This shows a 7x speedup over the "done wrong" code. Rust called into from Python showed a 100x improvement over the "done wrong" code: https://ohadravid.github
by ummonk 4y ago
This shows a 7x speedup over the "done wrong" code.
Rust called into from Python showed a 100x improvement over the "done wrong" code: https://ohadravid.github.io/posts/2023-03-rusty-python/ https://ohadravid.github.io/posts/2023-03-rusty-python/
So Python+NumPy is significantly slower than Python+Rust. And that's without doing any SIMD in the Rust code, though it's possible the compiler autounrolls and then autovectorizes the loop.
- ummonk 4y agoNever mind, I read the numbers wrong.