2 ms·
In my experiments from a few years ago, they were exactly even, in both size and speed. Those experiments were far from comprehensive, and both languages have c
by ncmncm 5y ago
In my experiments from a few years ago, they were exactly even, in both size and speed. Those experiments were far from comprehensive, and both languages have changed since, but not really much. The differences between coding styles of different people are generally much larger than any difference I could imagine showing up in real programs.
What we can say is that both C++ and Rust can be much more concise, much more readable, and much less less prone to trivial mistakes than C or C-like C++.