Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array fill vs spread
Array fill method vs for loop performance validation
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
For Loop fill
2.9 Ops/sec
Array Fill
3.4 Ops/sec
Tests:
For Loop fill
let arrayTest = [...new Array(10000000)].map(() => null);
Array Fill
let arrayTest = new Array(10000000).fill('').map(() => null);