3 ms·
It's within 5-10% on average, sometimes faster, usually a little slower, very rarely slower by much. The person you're responding to said "approximately". I fe
by dralley 8y ago
It's within 5-10% on average, sometimes faster, usually a little slower, very rarely slower by much. The person you're responding to said "approximately". I feel like this is needless pedantry.
Rust also allows you to make architectural decisions in the name of performance that would be completely unmaintainable in C. See: the Servo project.
- arcticbull 8y agoFurther, it should be possible for Rust to eventually reach a state where it's faster than C because of the lack of pointer aliasing. This opens up a whole host of optimization opportunities, allowing it to get closer in performance to Fortran (which is intrinsically the fastest of the bunch).
- dodobirdlord 8y agoIndeed, it's available but currently disabled due to a bug in LLVM that can cause incorrect code generation. https://github.com/rust-lang/rust/issues/54878 https://github.com/rust-lang/rust/issues/54878 This is not the first time it has been disabled due to an LLVM bug. https://github.com/rust-lang/rust/issues/31681 https://github.com/rust-lang/rust/issues/31681