Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
2 years ago
Benchmark.js
Array.sort
5.6M/s
Math min and max
2.9M/s
reduce with min and max
1.2M/s
View exact numbers
Test name Executions per second
Array.sort 5,638,222 Ops/sec
Math min and max 2,934,028 Ops/sec
reduce with min and max 1,203,376 Ops/sec
Script Preparation code:
Tests: