Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
[].concat vs [...]
Compare the new ES6 spread operator with the traditional concat() method
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 SberBrowser/19.0.0.0
Browser:
Chrome 127
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
[].concat
2719215.5 Ops/sec
[...]
9098901.0 Ops/sec
Tests:
[].concat
const a = [1,2,3] const b = [4,5,6] const c = [7,8,9] const d = [].concat(a,b,c)
[...]
const a = [1,2,3] const b = [4,5,6] const c = [7,8,9] const d = [...a,...b,...c]