Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
Math.Min 587.4 Ops/sec
Math.Max 630.3 Ops/sec
Reduce for min 987.0 Ops/sec
Reduce for max 933.5 Ops/sec
For for min 132.1 Ops/sec
For for max 130.4 Ops/sec
For of for min 131.8 Ops/sec
For of for max 132.2 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


;