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 23641350.0 Ops/sec
if 1017962176.0 Ops/sec
ternary 1008322688.0 Ops/sec
custom function 121068016.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary

  • custom function


;