3 ms·
The Rust - C++ speed comparison is sadly quite bad. On a modern machine, some of the benchmarks from the benchmarks game ran faster in Rust than in C++. It usua
by xiphias 8y ago
The Rust - C++ speed comparison is sadly quite bad. On a modern machine, some of the benchmarks from the benchmarks game ran faster in Rust than in C++. It usually depends on the explicit / implicit vectorisation support, and a lot of it is taken care of by LLVM.
Also if you look at the C code, the multi-threaded optimizations are quite hard to write in C, while Rust has Rayon (which is not yet used in the Benchmarks game examples).
- igouy 8y ago> Rust has Rayon (which is not yet used in the Benchmarks game examples) Yes it is! Since or before May 11th, 2017 — https://web.archive.org/web/20170511062152/http://benchmarksgame.alioth.debian.org:80/u64q/program.php?test=mandelbrot&lang=rust&id=4 https://web.archive.org/web/20170511062152/http://benchmarks...