Vanilla JS Reduce on a Map vs Lodash Reduce on a Map vs Custom Reduce on a MapFastest: Custom Reduce on a Map (20.9x faster)
104 ops/sec
19 ops/sec
5 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Vanilla JS Reduce on a Map | |
| Lodash Reduce on a Map | |
| Custom Reduce on a Map |
| Test name | Executions per second |
|---|---|
| ✓ Custom Reduce on a Map | 105 Ops/sec |
| Lodash Reduce on a Map | 10 Ops/sec |
| Vanilla JS Reduce on a Map | 5 Ops/sec |