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.6M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Vanilla CUSTOM sort method
|
6,618,888 Ops/sec |
|
Vanilla sort()
|
2,491,042 Ops/sec |
|
Lo-Dash sortBy()
|
713,954 Ops/sec |
Tests:
-
Lo-Dash sortBy()
-
Vanilla sort()
-
Vanilla CUSTOM sort method