Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array joining comparadfsvfsfrtdb
(version: 0)
Compare the new ES6 spread operator with the traditional concat() method
Comparing performance of:
Array.prototype.concat vs spread operator
Created:
3 years ago
by:
Guest
Jump to the latest result
Tests:
Array.prototype.concat
var params = new Array(1e5).fill({a:2,b:3,c:4}); var other = params.concat(params,params,params);
spread operator
var params = new Array(1e5).fill({a:2,b:3,c:4}); var other = [...params,...params,...params];
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.prototype.concat
spread operator
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
Array.prototype.concat vs Spread operator
Array.prototype.concat vs spread operatordsvsdxvseafawfawfawf
Concat vs Spread (Two Arrays)
Comments
Confirm delete:
Do you really want to delete benchmark?