Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Math.Min 590.7 Ops/sec
Math.Max 615.0 Ops/sec
Reduce for min 774.6 Ops/sec
Reduce for max 834.9 Ops/sec
For for min 117.6 Ops/sec
For for max 119.9 Ops/sec
For of for min 95.0 Ops/sec
For of for max 97.0 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


;