Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Mac OS X 10.13
Desktop
6 years ago
Test name Executions per second
Math.max/min 23568282.0 Ops/sec
if 1007403840.0 Ops/sec
ternary 999483392.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary