Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
speed test: concat vs spread vs push BdB
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.0.1
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
concat
37911440.0 Ops/sec
push
23434042.0 Ops/sec
spread
64675644.0 Ops/sec
Tests:
concat
let array1 = []; const array2 = ["bird", "snake", "green", "brown", "black", "three", "four" ]; array1 = array1.concat(array2);
push
const array1 = []; const array2 = ["bird", "snake", "green", "brown", "black", "three", "four" ]; array1.push(...array2);
spread
let array1 = []; const array2 = ["bird", "snake", "green", "brown", "black", "three", "four" ]; array1 = [...array1, ...array2];