Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
2 years ago
Benchmark.js
Vanilla CUSTOM sort method
6.8M/s
Underscore sortBy()
1.0M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Vanilla CUSTOM sort method
|
6,847,438 Ops/sec |
|
Vanilla sort()
|
2,795,279 Ops/sec |
|
Underscore sortBy()
|
1,013,239 Ops/sec |
Tests:
-
Underscore sortBy()
-
Vanilla sort()
-
Vanilla CUSTOM sort method