Run details:
Mozilla/5.0 (Linux; Android 8.1.0; BV9500Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.88 Mobile Safari/537.36
Chrome Mobile 91
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
Math.min 833202.2 Ops/sec
if 154661184.0 Ops/sec
ternary 153975360.0 Ops/sec
Script Preparation code:
Tests:
  • Math.min

  • if

  • ternary