Lo-Dash sortBy() vs Vanilla sort() vs Vanilla CUSTOM sort methodFastest: Vanilla CUSTOM sort method (9.2x faster)
8,730,014 ops/sec
3,336,571 ops/sec
951,597 ops/sec
Fastest: Vanilla CUSTOM sort method (9.8x faster)
9,303,921 ops/sec
6,792,408 ops/sec
953,612 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Lo-Dash sortBy() | |
| Vanilla sort() | |
| Vanilla CUSTOM sort method |
| Test name | Executions per second |
|---|---|
| ✓ Vanilla CUSTOM sort method | 58,387,976 Ops/sec |
| Vanilla sort() | 8,529,060 Ops/sec |
| Lo-Dash sortBy() | 2,611,395 Ops/sec |