Run details:
Mozilla/5.0 (Linux; Android 9; LM-G710VM) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 1319506.8 Ops/sec
if 842273408.0 Ops/sec
ternary 835792384.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary