C++ vs Rust: The Debate Continues
Published: October 09, 2026
In my opinion, the biggest contribution of hftuniversity.com to the overal social fabric of engineers is the deconstruction of these crazy myths that persist after years of practice. Volume 2 of Low Latency Trading Insights is all about slaughtering these sacred cows - 98 myths were scrutinized and only 32 of them came out unscathed - the rest was obliterated by the raw data.
One of the most persistent myths is that Rust is as fast as C or C++ for the same job. To test that, we added the Rust counterpart to every C++ challenge and the results show that no matter how much effort you put there, the limitations (by design) imposed by the Rust compiler to the language does have a measurable, significant impact on performance. This is covered in the article "We Tried to Prove Our Benchmark Was Unfair to Rust. Four Experiments Said No."
On the other hand, Rust cames out swinging with 58x performance gains over C++ when it comes to fresh, vanilla code. Out of the box, the Rust standard library comes with modern, high-performance, cache-friendly data structure and algorithms that put C++ to shame. We have covered that in the very popular article "Eviscerated by Rust: Overcoming C++'s 58x Standard Library Handicap"
And the infamous nonsense that plagued the C++ language since C++11 (Remember the Vasa) somehow appeals strongly to the ego of both junior and senior C++ devs trying to showboat their skills. Foot guns abound. Rust seems to be more immune to that kind of soul disease. If I am a manager having to approve PRs from a large team of over-excited devs, I'd feel more comfortable reviewing Rust than C++ for sure.
If you ask me, because 99% of the code produced is vanilla, I'd say Rust is the best language for everyday coding (or "application" code) while C++ gives the sophisticated developer more tools and freedom to get the last nanoseconds out of performance.
Review quiz
Five questions about this article. Get four right and it counts as read. Review quizzes come with a membership.
Log in See membership
Comments
No comments yet. Be the first to share your thoughts.