3 ms·
The chart legend is confusing... • "dart" means "handwritten Dart running in the Dart VM" • "v8" means "handwritten JavaScript running in V8" • "dart2js" mea
by callum85 14y ago
The chart legend is confusing...
• "dart" means "handwritten Dart running in the Dart VM"
• "v8" means "handwritten JavaScript running in V8"
• "dart2js" means "dart2js-generated JavaScript running in V8"
I can't find any link to the actual handwritten JavaScript (or the handwritten Dart) that these benchmarks are based on. Without this, it's impossible to know the value of these numbers.
Maybe the handwritten JavaScript is written really badly. Maybe the procedure performed by the respective languages is something that dart2js is particularly good at optimising. Who knows.
- timothya 14y agoDigging through some of the links, here are the sources I found: The JavaScript version is part of the Octane Web Benchmark. The DeltaBlue component is here: https://code.google.com/p/octane-benchmark/source/browse/latest/deltablue.js https://code.google.com/p/octane-benchmark/source/browse/lat... The Dart version of DeltaBlue is here: https://github.com/dart-lang/benchmark_harness/blob/master/example/DeltaBlue.dart https://github.com/dart-lang/benchmark_harness/blob/master/e...
- callum85 14y agoThanks. I withdraw my last two paragraphs :)