Run details:
Mozilla/5.0 (Linux; Android 10; ONEPLUS A6000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.119 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
Math.max/min 1935892.5 Ops/sec
if 844013568.0 Ops/sec
ternary 846225088.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary