Lodash with _.mapValues and _.omit vs Native reduce Grouping with Destructuring vs Custom reduce with Object.keys Filtering vs Lodash Grouping with Native Key RemovalFastest: Lodash (5.2x faster)
59 ops/sec
11 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Lodash with _.mapValues and _.omit | |
| Native reduce Grouping with Destructuring | |
| Custom reduce with Object.keys Filtering | |
| Lodash Grouping with Native Key Removal |
| Test name | Executions per second |
|---|---|
| ✓ Lodash Grouping with Native Key Removal | 44 Ops/sec |
| Native reduce Grouping with Destructuring | 15 Ops/sec |
| Custom reduce with Object.keys Filtering | 8 Ops/sec |
| Lodash with _.mapValues and _.omit | 3 Ops/sec |