Run details:
Mozilla/5.0 (Linux; Android 13; SM-G998U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.175 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
one year ago
Test name Executions per second
Math.min 6620473.5 Ops/sec
if 1018943040.0 Ops/sec
ternary 1013458176.0 Ops/sec
Script Preparation code:
Tests:
  • Math.min

  • if

  • ternary