modified version of `map-filter vs reduce` that switches the order of operations
Original was not fair comparison as it mapped all iterations not just the ones that passed the filter
* added for loop
Comparing performance of: map-filter vs reduce vs for
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
map-filter
reduce
for
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0