4 ms·
If you look at some of the individual benchmarks, they show that c, c++, rust, ada, and fortran are all over each other. I expect the difference in this case i
by moonchild 6y ago
If you look at some of the individual benchmarks, they show that c, c++, rust, ada, and fortran are all over each other.
I expect the difference in this case is either due to differences between llvm and gcc; differences in the standard library implementation; or because rust requires strict aliasing by default.
- kevincox 6y agoYup. In theory Rust and Fortran perform better than the others mostly due to the strict aliasing rules. However many benchmarks won't benefit from this difference and in practice it depends mostly on the standard library implementation and the "idiomatic" solution in each language. Of course compilers matter as well and even if they can all use LLVM the maturity of the frontends does matter.