Run details:
Mozilla/5.0 (Linux; Android 12; SM-S901U1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
Math.min 5514848.5 Ops/sec
if 1038268736.0 Ops/sec
ternary 1037405056.0 Ops/sec
Script Preparation code:
Tests:
  • Math.min

  • if

  • ternary