Run details:
Mozilla/5.0 (Linux; Android 5.1.1; Redmi 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.143 Mobile Safari/537.36
Chrome Mobile 75
Android 5.1.1
Mobile
5 years ago
Test name Executions per second
Math.Min 77.9 Ops/sec
Math.Max 82.4 Ops/sec
Reduce for min 52.6 Ops/sec
Reduce for max 53.1 Ops/sec
For for min 17.5 Ops/sec
For for max 17.5 Ops/sec
For of for min 16.8 Ops/sec
For of for max 17.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


;