22 ms·
I never did (I only played with Rust for a bit), so this doesn't answer the question. But realistically, the performance is almost certainly indistinguishable f
by ekr 7y ago
I never did (I only played with Rust for a bit), so this doesn't answer the question. But realistically, the performance is almost certainly indistinguishable from C/C++, the bottleneck will be in the IO. The compiled code should look almost the same. (I don't remember if rust is using LLVM IR at some stage, but even so).
And given the advantages of Rust over C/C++ in terms of PL functionality, type system etc, I'd say it's worth it (unless you haven't already invested the effort to become proficient in it, and you're already happy with C/C++).
- Recurecur 7y ago>(I don't remember if rust is using LLVM IR at some stage, but even so). Rust is LLVM based, so yes.