`filter().length` vs. `reduce` vs. `for` fork (version: 0)
Compare `filter().length` vs `reduce` vs `for` loop by counting element that satisfy condition.
Forked from https://www.measurethat.net/Benchmarks/Show/22294/0/filterlength-vs-reduce-vs-for
Comparing performance of: filter().length vs reduce vs for loop
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
filter().length
reduce
for loop
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36