Dart VM - bad benchmark results #7347
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by @bp74
What steps will reproduce the problem?
There is news on the web saying "The Dart VM is now 50% faster than V8 on the two Octane benchmarks". That's great and we are looking in a bright future with Dart!
Unfortunately i have Dart code which is realy slow, i have attached the benchmark and below are some numbers. The benchmark uses the "benchmark_harness" library, so the benchmark should be fine.
What is the expected output? What do you see instead?
The benchmark is creating a CanvasElement and performs a color matrix filter (grayscale filter). I checked the performance of the "getImageData" and "putImageData" methods of the CanvasRenderingContext2D which is fine, the problem are the loops and the index operations on the List.
Here are the benchmarl results:
Dartium (Dart), 22 iterations
CanvasBenchmark(RunTime): 1050500.0 us.
Chrome (JS), 1854 iterations
CanvasBenchmark(RunTime): 11316.384180790961 us.
IE9 (JS), 235 iterations
PROTOKOLL: CanvasBenchmark(RunTime): 90304.34782608696 us.
Firefox (JS), 548 iterations
CanvasBenchmark(RunTime): 38615.38461538462 us.
What version of the product are you using? On what operating system?
Dart Editor version 0.1.2_r16052
Dart SDK version 0.1.2.0_r16045
Please provide any additional information below.
Attachment:
canvas_benchmark.zip (40.64 KB)
The text was updated successfully, but these errors were encountered: