Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amarok24/fillarray__dart-vs-js
Speed comparison of Dart vs. JavaScript, filling an array with numbers.
https://github.com/amarok24/fillarray__dart-vs-js
dart javascript speed-comparison
Last synced: about 11 hours ago
JSON representation
Speed comparison of Dart vs. JavaScript, filling an array with numbers.
- Host: GitHub
- URL: https://github.com/amarok24/fillarray__dart-vs-js
- Owner: Amarok24
- License: unlicense
- Created: 2021-04-21T13:56:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-21T14:21:22.000Z (over 3 years ago)
- Last Synced: 2024-11-06T04:40:25.194Z (about 2 months ago)
- Topics: dart, javascript, speed-comparison
- Language: Dart
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fillArray__Dart-vs-JS
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)*
### 3 test runs with parameters: 1000002, 1000003, 1000004 (to avoid any runtime caching)
## fillArray.dart
- 2 ms
- 2 ms
- 3 ms
- AVERAGE: 2.33msCompiled (NATIVE .exe) code execution:
- 1 ms
- 1 ms
- 2 ms
- AVERAGE: 1.333ms## growList.dart
- 26 ms
- 21 ms
- 22 ms
- AVERAGE: 23msCompiled (NATIVE .exe) code execution:
- 19 ms
- 17 ms
- 16 ms
- AVERAGE: 17.333ms## growDynamicList.dart
- 20ms
- 23ms
- 25ms
- AVERAGE: 22.67msCompiled (NATIVE .exe) code execution:
- 19 ms
- 17 ms
- 15 ms
- AVERAGE: 17.0ms## fillArray.js
Brave browser (Version 1.16.68 Chromium: 86.0.4240.111)
- 4.76708984375 ms
- 2.39404296875 ms
- 2.76123046875 ms
- AVERAGE: 3.3ms## fillArrayInt32.js
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)## growArray.js
Brave browser (Version 1.16.68 Chromium: 86.0.4240.111)
- 20.570068359375 ms
- 21.253173828125 ms
- 19.4140625 ms
- AVERAGE: 20.4ms