Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
Math.Min 1634.0 Ops/sec
Math.Max 1666.6 Ops/sec
Reduce for min 1410.2 Ops/sec
Reduce for max 1418.9 Ops/sec
For for min 310.6 Ops/sec
For for max 311.3 Ops/sec
For of for min 322.9 Ops/sec
For of for max 338.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


;