Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Spread vs push on reduce function
(version: 0)
Comparing performance of:
Spread vs Push
Created:
3 years ago
by:
Guest
Jump to the latest result
Tests:
Spread
let arr = new Array(100) arr.fill("foo") arr.reduce((acc, curr)=> ([...acc, curr]),[])
Push
let arr = new Array(100) arr.fill("foo") arr.reduce((acc, curr) => {acc.push(curr) return acc},[])
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:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
ES6 spread operator vs. Array.prototype.reduce()
Arrays: spread operator vs push
Array: spread operator vs push
spread operator vs push test - correct
Array .push() vs spread operator
Comments
Confirm delete:
Do you really want to delete benchmark?