Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0
Chrome 136
Windows
Desktop
one year ago
Benchmark.js
Vanilla CUSTOM sort method
4.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Vanilla CUSTOM sort method
|
4,506,716 Ops/sec |
|
Vanilla sort()
|
1,754,779 Ops/sec |
|
Lo-Dash sortBy()
|
115,537 Ops/sec |
Tests:
-
Lo-Dash sortBy()
-
Vanilla sort()
-
Vanilla CUSTOM sort method