Test case name | Result |
---|---|
.filter() | |
Lodash _.filter() | |
.map().filter() | |
For loop | |
.reduce() | |
.reduce() with comparisionFunction |
Test name | Executions per second |
---|---|
.filter() | 740.4 Ops/sec |
Lodash _.filter() | 893.6 Ops/sec |
.map().filter() | 56.8 Ops/sec |
For loop | 90.2 Ops/sec |
.reduce() | 775.2 Ops/sec |
.reduce() with comparisionFunction | 156.8 Ops/sec |