6 ms·
The delta there is because the Rust 1.92 version uses the straightforward iterative code and the 1.94-nightly version explicitly uses std::simd vectorization. C
by pjscott 9mo ago
The delta there is because the Rust 1.92 version uses the straightforward iterative code and the 1.94-nightly version explicitly uses std::simd vectorization. Compare the source code:
https://github.com/niklas-heer/speed-comparison/blob/master/src/leibniz.rs https://github.com/niklas-heer/speed-comparison/blob/master/...
https://github.com/niklas-heer/speed-comparison/blob/master/src/leibniz_nightly.rs https://github.com/niklas-heer/speed-comparison/blob/master/...