5 ms·
The benchmarks game's results are not very correlated with real-world performance. In this context, Rust's semantics do allow C-level performance- they make it
by Rusky 11y ago
The benchmarks game's results are not very correlated with real-world performance.
In this context, Rust's semantics do allow C-level performance- they make it straightforward to describe the same machine code that C would. In some cases, they even enable more compiler optimizations than C does.
Java, on the other hand, makes it hard or impossible to do that (straightforwardly at least). A more mature compiler will make a lot of difference- compare early Java performance to where it is now, for example.
- igouy 11y ago>>not very correlated with real-world performance<< Please share your measurements of "real-world performance" that are "not very correlated" with the benchmarks game's results. edit: Please provide a better response than downmods.
- pcwalton 11y agoServo layout, painting, DOM performance. JSON serialization in serde.
- igouy 11y agoObviously not in any way an answer to the question asked. edit: Please provide a better response than downmods.
- Daishiman 11y agoGo actually check the things pcwalton mentioned instead of complaining.
- igouy 11y agoPlease provide comparison measurements of the things pcwalton mentioned. Just a URL to published comparison measurements would be so much more interesting for anyone interested in Rust, than downmods.
- pcwalton 11y agohttp://erickt.github.io/blog/2014/12/13/performance-digression/ http://erickt.github.io/blog/2014/12/13/performance-digressi...
- igouy 11y agoHow about some measurements made with rustc 1.0.0? (There seem to have been plenty of breaking language changes in the last 6 months.)
- Manishearth 11y agohttp://xania.org/201505/on-rust-performance http://xania.org/201505/on-rust-performance (The "faster" bit isn't important; various reasons might have made C++ slower than Rust for this, but what is important is that perf was comparable)
- igouy 11y agoDo you think a 100 line ray tracer is any more "correlated with real-world performance" than 100 line benchmarks game programs? What I questioned was Rusky's technical-sounding but apparently unsupported claim that "the benchmarks game's results are not very correlated with real-world performance." For Rusky to know he'd need some kind-of "real-world performance" measurements and a correlation coefficient - neither of which have been shown.