_.sortBy vs array.prototype.sort vs other vs Stable SortFastest: array.prototype.sort (78.4x faster)
566 ops/sec
159 ops/sec
26 ops/sec
7 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| _.sortBy | |
| array.prototype.sort | |
| other | |
| Stable Sort |
| Test name | Executions per second |
|---|---|
| ✓ array.prototype.sort | 1,236 Ops/sec |
| Stable Sort | 439 Ops/sec |
| _.sortBy | 48 Ops/sec |
| other | 11 Ops/sec |