Underscore sortBy() vs Vanilla sort() vs Vanilla CUSTOM sort methodFastest: Vanilla CUSTOM sort method (6.9x faster)
8,612,023 ops/sec
3,467,831 ops/sec
1,250,564 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Underscore sortBy() | |
| Vanilla sort() | |
| Vanilla CUSTOM sort method |
| Test name | Executions per second |
|---|---|
| ✓ Vanilla CUSTOM sort method | 11,515,022 Ops/sec |
| Vanilla sort() | 8,108,240 Ops/sec |
| Underscore sortBy() | 2,397,556 Ops/sec |