Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A6003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.73 Mobile Safari/537.36
Chrome Mobile 77
Android
Mobile
5 years ago
Test name Executions per second
Math.max/min 1735940.0 Ops/sec
if 805262144.0 Ops/sec
ternary 809696256.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary