Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JS Build Big Array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 15; Mobile; rv:135.0) Gecko/135.0 Firefox/135.0
Browser:
Firefox Mobile 135
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Dynamic
4.2 Ops/sec
Pre Allocated
4.2 Ops/sec
Script Preparation code:
var n = 10000000
Tests:
Dynamic
const arr = []; for (let i = 0; i < n; i++) { arr.push(i); }
Pre Allocated
const arr = new Array(n); for (let i = 0; i < n; i++) { arr[i] = i; }