Run details:
Mozilla/5.0 (Linux; Android 8.1.0; vivo 1807) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android 8.1.0
Mobile
one year ago
Test name Executions per second
Math.max/min 390683.8 Ops/sec
if 186240832.0 Ops/sec
ternary 188629280.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary