Run details:
Mozilla/5.0 (Linux; Android 14; XQ-DC72 Build/68.1.A.2.187) AppleWebKit/537.36 (KHTML, like Gecko) Soul/4.0 Chrome/123.0.6312.99 Mobile Safari/537.36
Chrome Mobile 123
Android
Mobile
8 months ago
Test name Executions per second
Math.min 4820386.0 Ops/sec
if 19591284.0 Ops/sec
ternary 19190920.0 Ops/sec
Script Preparation code:
Tests:
  • Math.min

  • if

  • ternary