Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Push vs concat vs spread
(version: 0)
Comparing performance of:
Spread operator vs Push vs Concat
Created:
5 years ago
by:
Guest
Jump to the latest result
Tests:
Spread operator
let arr = []; for (i = 0; i < 1000; i++) { arr = [...arr, i]; }
Push
let arr = []; for(i = 0; i < 1000; i++){ arr.push[i]; }
Concat
let arr = []; for (i = 0; i < 1000; i++) { arr = arr.concat(i) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Spread operator
Push
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 concat vs spread operator vs push mine
spread operator vs push Brian
spread operator vs push Brian2
Array concat vs spread operator vs push larger list
zk test spread vs push
Comments
Confirm delete:
Do you really want to delete benchmark?