Lodash partition vs reduce with array push vs double filterFastest: reduce with array push (1.1x faster)
25,607 ops/sec
23,866 ops/sec
22,451 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Lodash partition | |
| reduce with array push | |
| double filter |
| Test name | Executions per second |
|---|---|
| ✓ Lodash partition | 24,560 Ops/sec |
| reduce with array push | 18,856 Ops/sec |
| double filter | 16,050 Ops/sec |