Run details:
Mozilla/5.0 (Android 11; Mobile; rv:92.0) Gecko/92.0 Firefox/92.0
Firefox Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 25180218.0 Ops/sec
if 276956672.0 Ops/sec
ternary 269518496.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary