Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Spread whole array vs push [JS]
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
3 months ago
Test name
Executions per second
spread
626.2 Ops/sec
push
427839.2 Ops/sec
Tests:
spread
let arr = [] for(i=0; i<1000; i++) { arr = [...arr, i] }
push
let arr = [] for(i=0; i<1000; i++) { arr.push(i) }