4 ms·
To complete the TL;DR : the safe Rust code is at 97% the speed of the C code, if keeping manual vectorization.
by Epholys 2y ago
To complete the TL;DR : the safe Rust code is at 97% the speed of the C code, if keeping manual vectorization.
- simon_void 2y agoTo complete the completion of the TL;DR : the 95% safe Rust Code using auto vectorization is even slightly faster than the C code.
- FFFXXX 2y agoThe 95% safe Rust Code does not use any auto-vectorization (https://cliffle.com/p/dangerust/5/nbody-5.rs https://cliffle.com/p/dangerust/5/nbody-5.rs) Only the 100% Rust-safe implementation uses auto-vectorization and is at 0.73% of the RUNTIME of the C code. (https://cliffle.com/p/dangerust/6/#performance-evaluation https://cliffle.com/p/dangerust/6/#performance-evaluation)
- estebank 2y ago*73%
- FFFXXX 2y agoNo, the Rust code is at 97% of the RUNTIME of the C code (https://cliffle.com/p/dangerust/5/#evaluation https://cliffle.com/p/dangerust/5/#evaluation) when keeping the manual vectorization.