Run details:
Mozilla/5.0 (Linux; Android 11; SM-A515F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
Math.Min 134.9 Ops/sec
Math.Max 175.7 Ops/sec
Reduce for min 232.2 Ops/sec
Reduce for max 239.9 Ops/sec
For for min 46.0 Ops/sec
For for max 46.2 Ops/sec
For of for min 40.0 Ops/sec
For of for max 39.9 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


;