Hacker News new | ask | show | jobs
by xiphias 2704 days 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).

1 comments

> 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://benchmarks...