Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
concat vs spread by sy
(version: 0)
Comparing performance of:
concat vs spread
Created:
3 years ago
by:
Guest
Jump to the latest result
Tests:
concat
const array = [1,2,3,4,5,6] const entry = 7 console.log(array.concat(entry))
spread
const array = [1,2,3,4,5,6] const entry = 7 console.log([...array, entry])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
concat
spread
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser/OS:
Chrome 134 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
concat
74477.1 Ops/sec
spread
77062.4 Ops/sec
Related benchmarks:
Array.prototype.concat vs Spread operator
Array.concat vs Spread Operator
Array.prototype.concat vs spread operator vs stringify over tree data struct
concat vs push vs spread performance
Array concat vs spread operator vs push performance
Comments
Confirm delete:
Do you really want to delete benchmark?