Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Windows
Desktop
2 years ago
Test name Executions per second
Math.Min 1790.6 Ops/sec
Math.Max 2216.0 Ops/sec
Reduce for min 3288.8 Ops/sec
Reduce for max 2522.3 Ops/sec
For for min 5106.5 Ops/sec
For for max 4443.1 Ops/sec
For of for min 51.0 Ops/sec
For of for max 49.7 Ops/sec
Script Preparation code:
Tests:
  • Math.Min

  • Math.Max

  • Reduce for min

  • Reduce for max

  • For for min

  • For for max

  • For of for min

  • For of for max


;