Run details:
Mozilla/5.0 (Android 10; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0
Firefox Mobile 68
Android
Mobile
4 years ago
Test name Executions per second
Math.max/min 11568666.0 Ops/sec
if 259830880.0 Ops/sec
ternary 273455616.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary