Run details:
Mozilla/5.0 (Android 10; Mobile; rv:82.0) Gecko/82.0 Firefox/82.0
Firefox Mobile 82
Android
Mobile
4 years ago
Test name Executions per second
Math.max/min 10329779.0 Ops/sec
if 263334672.0 Ops/sec
ternary 261974816.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary