Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 9S Build/QKQ1.191215.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.101 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/300.1.0.57.129;]
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
Math.max/min 1825061.1 Ops/sec
if 932694080.0 Ops/sec
ternary 934764544.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary