Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
9 months ago
Test name Executions per second
Math.Min 1690.7 Ops/sec
Math.Max 1504.2 Ops/sec
Reduce for min 1958.0 Ops/sec
Reduce for max 2109.3 Ops/sec
For for min 4031.1 Ops/sec
For for max 5689.5 Ops/sec
For of for min 144.1 Ops/sec
For of for max 144.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


;