Run details:
Mozilla/5.0 (Linux; Android 10; GM1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.181 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 1678570.5 Ops/sec
if 1178048256.0 Ops/sec
ternary 1169779328.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary