Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0
Chrome 123
Windows
Desktop
7 months ago
Test name Executions per second
Math.Min 1017.7 Ops/sec
Math.Max 973.5 Ops/sec
Reduce for min 1306.2 Ops/sec
Reduce for max 1325.1 Ops/sec
For for min 192.0 Ops/sec
For for max 192.4 Ops/sec
For of for min 225.6 Ops/sec
For of for max 222.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


;