Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array concat large-ish data sets
(version: 0)
Comparing performance of:
Concat vs Spread vs Push
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var params = (new Array(250)).fill(Math.random()); var other = (new Array(500)).fill(Math.random());
Tests:
Concat
params.concat(other);
Spread
[...params, ...other];
Push
params.push(...other);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Concat
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!
Comments
Confirm delete:
Do you really want to delete benchmark?