Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.9
Desktop
3 years ago
Test name Executions per second
Math.max/min 18176926.0 Ops/sec
if 837926720.0 Ops/sec
ternary 836448320.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary