Run details:
Mozilla/5.0 (Linux; Android 10; SM-G960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 982244.1 Ops/sec
if 608768576.0 Ops/sec
ternary 691998400.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary