Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Windows
Desktop
one year ago
Test name Executions per second
Math.max/min 1130946.0 Ops/sec
if 3278866.5 Ops/sec
ternary 3295761.5 Ops/sec
bitwise 1644690.9 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary

  • bitwise


;