Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Trustworthy performance comparisons between C++ and Rust?
5 points by dsacco on May 20, 2017 | hide | past | favorite | 2 comments
Hey HN,

I'm looking for strong benchmarks or comparisons between Rust and C++. I'm skeptical of a lot of benchmarks that are posted here as I know they can be gamed, so I'd appreciate it if folks in the Rust and C++ community who have reasonable expertise could post interesting demonstrations or research that compare the two languages for high performance computing.

I also would be interested in hearing from the community which features either language offers that are better than the other for performance (i.e. not security or library support).

Thanks!



The information rustc can hand to llvm should allow for great optimization, but llvm's optimizer has bugs that mean rustc can't pass much of it, or the optimizer won't make a valid binary (it will crash). Also, llvm's optimizer is way behind gcc's (way way behind intel's)for hpc type stuff. So clang is probably on par with rustc, but GCC or ICC (and certainly ifort) will outperform rustc in the hpc arena until llvm catches up.


Thanks, I appreciate this comment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: