Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
2 years ago
Benchmark.js
Vanilla CUSTOM sort method
6.1M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Vanilla CUSTOM sort method
|
6,098,896 Ops/sec |
|
Vanilla sort()
|
2,228,347 Ops/sec |
|
Lo-Dash sortBy()
|
650,473 Ops/sec |
Tests:
-
Lo-Dash sortBy()
-
Vanilla sort()
-
Vanilla CUSTOM sort method