Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Pushing vs Filling
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Browser:
Firefox 120
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
Filling Array
5K/s
Adding to Array
3K/s
View exact numbers
Test name
Executions per second
✓
Filling Array
4,640 Ops/sec
Adding to Array
3,179 Ops/sec
Tests:
Filling Array
const array = Array(10000); for (let i = 0; i < 10000; i++) { array[i] = Math.random(); }
Adding to Array
const array = []; for (let i = 0; i < 10000; i++) { array.push(Math.random()) }