Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
Vanilla CUSTOM sort method
9.3M/s
Vanilla sort()
4.5M/s
Lo-Dash sortBy()
1.4M/s
View exact numbers
Test name Executions per second
Vanilla CUSTOM sort method 9,345,581 Ops/sec
Vanilla sort() 4,484,460 Ops/sec
Lo-Dash sortBy() 1,394,413 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: