Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Linux
Desktop
one year ago
Test name Executions per second
Math.Min 465.4 Ops/sec
Math.Max 524.2 Ops/sec
Reduce for min 1087.5 Ops/sec
Reduce for max 1109.6 Ops/sec
For for min 191.9 Ops/sec
For for max 197.2 Ops/sec
For of for min 149.4 Ops/sec
For of for max 153.8 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


;