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:
6 months ago
push
428K/s
spread
626/s
View exact numbers
Test name
Executions per second
✓
push
427,839 Ops/sec
spread
626 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) }