Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array push vs spread operators
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36 OPR/92.0.0.0
Browser:
Opera Mobile 92
Operating system:
Android
Device Platform:
Mobile
Date tested:
5 months ago
Test name
Executions per second
Push
58231.9 Ops/sec
Spread
57343.4 Ops/sec
Tests:
Push
let first = Array.from({ length: 100 }, (_, i) => i); let second = Array.from({ length: 100 }, (_, i) => i); let all = first.push(...second)
Spread
let first = Array.from({ length: 100 }, (_, i) => i); let second = Array.from({ length: 100 }, (_, i) => i); let all = [...first, ...second]