Run details:
Mozilla/5.0 (Linux; Android 8.0.0; WAS-LX1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.111 Mobile Safari/537.36
Chrome Mobile 81
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
Math.max/min 433453.7 Ops/sec
if 175810928.0 Ops/sec
ternary 189405104.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary