Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test spread vs concat
(version: 0)
Comparing performance of:
spread vs concat
Created:
4 years ago
by:
Guest
Jump to the latest result
Tests:
spread
let a = [0,1,2,3]; let b= [10,11,12,13,14,15,16,17,18,19]; b.splice(0,a.length, ...a);console.log(b);
concat
let a = [0,1,2,3,]; let b= [10,11,12,13,14,15,16,17,18,19]; console.log(a.concat(b.slice(a.length)));
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
spread
concat
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.concat vs Spread Operator
Array.prototype.concat vs spread operator 12
concat vs spread three arrays
Comments
Confirm delete:
Do you really want to delete benchmark?