native sort of objects by localeCompare vs lodash _.orderByFastest: native sort of objects by localeCompare (2.2x faster)
4,496,168 ops/sec
2,033,505 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| native sort of objects by localeCompare | |
| lodash _.orderBy |
| Test name | Executions per second |
|---|---|
| ✓ native sort of objects by localeCompare | 5,566,626 Ops/sec |
| lodash _.orderBy | 2,707,280 Ops/sec |