Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array concat vs spread operator vs pushxx
(version: 0)
Compare the new ES6 spread operator with the traditional concat() method and push
Comparing performance of:
spread vs push
Created:
5 years ago
by:
Guest
Jump to the latest result
Tests:
spread
var params = [ "hello", true, 7 ]; params = [ ...params, "444"];
push
var params = [ "hello", true, 7 ] params.push("444");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
spread
push
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Array.prototype.concat vs spread operator
Array.prototype.concat vs Spread operator
concat 2 arrays: Array.prototype.concat vs spread operator
Array concat vs spread operator vs push with more data
Array.prototype.concat vs spread operator real
Comments
Confirm delete:
Do you really want to delete benchmark?