Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.41 YaBrowser/21.2.0.2458 Yowser/2.5 Safari/537.36
Yandex Browser 21
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Math.max/min 3410524.5 Ops/sec
if 917016704.0 Ops/sec
ternary 916958016.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary