Re:Why is Rust slightly slower than C?
by physicsyogi on Wednesday September 11, 2019 @06:57PM
(#20945704)
There are a few numerical computing benchmarks for which Rust is sometimes faster than C: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
[ Parent
| on HN ]
Re:Why is Rust slightly slower than C?
by emmericp on Wednesday September 11, 2019 @07:20PM
(#20945835)
Geometric mean over their "fastest measurement at the largest workload" data set actually shows that Rust is faster than C in this benchmark
Please share!
If true, can you say the difference is not due to chance?
(fwiw the GM that I see — whether the scores are based-on elapsed secs, cpu secs or "busy" secs — are a little slower for the Rust programs.)
Perhaps the median score of the Rust programs is faster?
Re:Why is Rust slightly slower than C?
by jamessteel on Wednesday September 11, 2019 @10:40PM
(#20947306)
For what it worth, it is more accurate to bench on your own machine, you may find a different or interesting outcomes such as error and slower in Rust.