Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
concat vs spread by sy
(version: 0)
Benchmark.js
Comparing performance of:
concat vs spread
Created:
4 years ago
by:
Guest
Go 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
spread
77K/s
concat
74K/s
View exact numbers
Test name
Executions per second
✓
spread
77,062 Ops/sec
concat
74,477 Ops/sec
Related benchmarks
concat vs push vs spread performance
Comments
Confirm delete:
Do you really want to delete benchmark?