3 ms·
> Doesn't a 30% performance improvement (I'm just talking dart vs. JavaScript, not dart2js generated code vs JavaScript) seem like a pretty weak result given th
by munificent 14y ago
> Doesn't a 30% performance improvement (I'm just talking dart vs. JavaScript, not dart2js generated code vs JavaScript) seem like a pretty weak result given that they've created a new language?
Well keep in mind that every other language that compiles to JS is generally slower, so any improvement here is pretty impressive.
Note that this is just the performance of the Dart code compiled to JavaScript. Dart code running on the native Dart VM has very different, better perf.
- reeses 14y agoThat's what the parent poster is saying with "(I'm just talking dart vs. JavaScript, not dart2js generated code vs JavaScript)". If you look at the graph, the top line (dart vm) is running about 400-500 "Runtime Score". V8's moseying along at ±300. What he or she is wondering is why one would bother with dart if it's not much, much more Runtime Scorey than JavaScript (V8).
- xxgreg 14y agoOn the Richards benchmark it's 1.9x. After 2 years this is pretty impressive. Due the nature of the Dart language the DartVM will make a number of optimizations possible that are not even possible in V8. So it will be a better platform for continued performance improvements. Time will tell... To be honest, even if it was only doing 0.5x, I'd still use it because the tooling makes me more productive. http://www.dartlang.org/performance/ http://www.dartlang.org/performance/