Run details:
Mozilla/5.0 (Linux; Android 11; T810S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 1760379.8 Ops/sec
if 681396480.0 Ops/sec
ternary 676219712.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary