Run details:
Mozilla/5.0 (X11; Fedora; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69
Fedora
Desktop
5 years ago
Test name Executions per second
Math.max/min 3221294.5 Ops/sec
if 747383232.0 Ops/sec
ternary 742720640.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary