Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array spred push vs Array.prototype.push.apply
(version: 0)
Comparing performance of:
Array.prototype.push.apply vs Spread push
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var array1 = Array(100).fill(1); var array2 = Array(100).fill(2);
Tests:
Array.prototype.push.apply
var result = Array.prototype.push.apply(array1, array2);
Spread push
var result = array1.push(...array2);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array.prototype.push.apply
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?