Speed comparison of Dart vs. JavaScript, filling an array with numbers.
Tests done on: Intel i7 2.9 GHz, Windows 10 64bit
Dart: Dart SDK version: 2.12.2 (stable)
- 2 ms
- 2 ms
- 3 ms
- AVERAGE: 2.33ms
Compiled (NATIVE .exe) code execution:
- 1 ms
- 1 ms
- 2 ms
- AVERAGE: 1.333ms
- 26 ms
- 21 ms
- 22 ms
- AVERAGE: 23ms
Compiled (NATIVE .exe) code execution:
- 19 ms
- 17 ms
- 16 ms
- AVERAGE: 17.333ms
- 20ms
- 23ms
- 25ms
- AVERAGE: 22.67ms
Compiled (NATIVE .exe) code execution:
- 19 ms
- 17 ms
- 15 ms
- AVERAGE: 17.0ms
Brave browser (Version 1.16.68 Chromium: 86.0.4240.111)
- 4.76708984375 ms
- 2.39404296875 ms
- 2.76123046875 ms
- AVERAGE: 3.3ms
Deno { deno: "1.5.1", v8: "8.7.220.3", typescript: "4.0.3" }
- 5 ms
- 5 ms
- 6 ms
- AVERAGE: 5.7ms (speed in NodeJS is equivalent)
Brave browser (Version 1.16.68 Chromium: 86.0.4240.111)
- 20.570068359375 ms
- 21.253173828125 ms
- 19.4140625 ms
- AVERAGE: 20.4ms