Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 OPR/60.0.3255.109
Opera 60
Windows 7
Desktop
5 years ago
Test name Executions per second
Math.max/min 3546687.0 Ops/sec
if 975807680.0 Ops/sec
ternary 966903872.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary


;