Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test test test
(version: 0)
Comparing performance of:
reduce test vs flatmap test
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = Array(10_000).fill(0)
Tests:
reduce test
arr.reduce((acc, x) => { acc.push(x); return acc; }, [])
flatmap test
arr.flatMap(x => [x, x])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
reduce test
flatmap test
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:
filling
array last element big data
TypedArray fill vs loop
array.splice vs array.length
shallow copy of 6M elements array
Comments
Confirm delete:
Do you really want to delete benchmark?