Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Spread vs Push 2025
(version: 1)
Comparing performance of:
Spread vs Push
Created:
10 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
Spread
var params = [ "hello", true, 7 ] var other = [ 1, ...params ]
Push
var params = [ "hello", true, 7 ] var other = params.unshift(1)
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:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser/OS:
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Spread
63525480.0 Ops/sec
Push
32913360.0 Ops/sec
Related benchmarks:
Assigning new variable
Nullish vs If
js mul vs pow
set vs uniq
set vs uniq2
test-string-1
unshift vs pop,push
String comp
=== vs reges
Comments
Confirm delete:
Do you really want to delete benchmark?