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 688154.1 Ops/sec
if 444769312.0 Ops/sec
ternary 828953664.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary


;