Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 YaBrowser/19.6.0.1583 Yowser/2.5 Safari/537.36
Yandex Browser 19
Mac OS X 10.14.6
Desktop
5 years ago
Test name Executions per second
Math.max/min 2050381.5 Ops/sec
if 740230272.0 Ops/sec
ternary 705999040.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary