Run details:
Mozilla/5.0 (Android 9; Mobile; rv:65.0) Gecko/65.0 Firefox/65.0
Firefox Mobile 65
Android
Mobile
5 years ago
Test name Executions per second
Math.max/min 19925782.0 Ops/sec
if 531691296.0 Ops/sec
ternary 442438400.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary