3 ms·
Is there anything that compares Rust's performance vs other languages?
by aliakhtar 12y ago
Is there anything that compares Rust's performance vs other languages?
- steveklabnik 12y agoLike all performance questions, the answer requires another question: "at what?" There's been a number of different benchmarks, in a bunch of places. We generally end up in the same realm as C++, sometimes faster, sometimes slower. Also, many benchmark authors seem to accidentally compile Rust code without optimizations. We're considering switching Cargo's defaults because of this.
- aliakhtar 12y agoI'd be interested in seeing Rust included in https://www.techempower.com/benchmarks/ https://www.techempower.com/benchmarks/
- steveklabnik 12y agoYeah, it might be neat. It's still unclear how good Rust is going to be at website backends, though there's a lot of people putting hard work into it. Once it all matures, seems good.
- aliakhtar 12y agoI'm considering C++ for an NLP related project. Normally I use Java/Scala, but the memory usage when you have to store a lot of strings, is pretty high. (The Stanford NLP library recommends at least 3-4Gb of Ram) I'm considering C++ for the lower memory requirements, but obviously the syntax, etc aren't ideal. Do you have any opinion on how Rust would perform in that scenario?
- steveklabnik 12y agoI'm not mega familliar with NLP as a field, but abandoning Java means you abandon Weka, right? While Rust the language might be good for this, there's basically zero libraries, so you'll be doing all that work from scratch.
- b08aa8b0dcfce 12y agoFrom the Rust website: "Rust is a systems programming language that runs blazingly fast". It says: blazingly fast. What more do you need? Benchmarks? Pft.