Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-G970U) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/17.0 Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
Math.min 4415229.5 Ops/sec
if 1337850624.0 Ops/sec
ternary 1340369792.0 Ops/sec
Script Preparation code:
Tests:
  • Math.min

  • if

  • ternary