Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
concat vs Destructuring
(version: 0)
Comparing performance of:
Spread Operator vs concat
Created:
2 years ago
by:
Guest
Jump to the latest result
Tests:
Spread Operator
const before = Array(10000).fill('before') const after = Array(10000).fill('after') before.push(...after)
concat
const before = Array(10000).fill('before') const after = Array(10000).fill('after') before.concat(after)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Spread Operator
concat
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
7 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 YaBrowser/25.8.0.0 Safari/537.36
Browser/OS:
Yandex Browser 25 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Spread Operator
23649.4 Ops/sec
concat
27041.0 Ops/sec
Related benchmarks:
Array#concat vs Array#push
Array combination by destructuring vs concat()
array spread operator vs concat fix
Array 2000 spread vs concat
Comments
Confirm delete:
Do you really want to delete benchmark?