Array.prototype.reduce() vs _.uniqByFastest: Array.prototype.reduce() (4.5x faster)
1,855,744 ops/sec
415,911 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.prototype.reduce() | |
| _.uniqBy |
| Test name | Executions per second |
|---|---|
| ✓ Array.prototype.reduce() | 5,162,223 Ops/sec |
| _.uniqBy | 1,617,437 Ops/sec |