Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 YaBrowser/18.3.1.1235 Yowser/2.5 Safari/537.36
Yandex Browser 18
Mac OS X 10.12.6
Desktop
6 years ago
Test name Executions per second
Math.max/min 2035143.2 Ops/sec
if 1362572160.0 Ops/sec
ternary 1401561344.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary