Run details:
Mozilla/5.0 (Android 6.0.1; Mobile; rv:57.0) Gecko/57.0 Firefox/57.0
Firefox Mobile 57
Android 6.0.1
Mobile
6 years ago
Test name Executions per second
Math.max/min 7806058.5 Ops/sec
if 371698528.0 Ops/sec
ternary 358303040.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary