Run details:
Mozilla/5.0 (iPad; CPU OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/71.0.3578.89 Mobile/14A403 Safari/602.1
Chrome Mobile iOS 71
iOS 10.0.1
Tablet
4 years ago
Test name Executions per second
Math.max/min 1290793.6 Ops/sec
if 170507584.0 Ops/sec
ternary 171039408.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary