Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Bench flat map vs spread reducere6434
(version: 0)
Comparing performance of:
spread vs flatmap
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = Array(10_000).fill([0,0,0]) var arr2 = []
Tests:
spread
arr.forEach(item=>arr2.push(...item))
flatmap
arr.flatMap((item) => { return item; });
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
spread
flatmap
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?