Run details:
Mozilla/5.0 (Linux; Android 9; vivo 1904) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android
Mobile
4 years ago
Test name Executions per second
Math.max/min 419362.2 Ops/sec
if 175281776.0 Ops/sec
ternary 175714336.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary


;