Run details:
Mozilla/5.0 (Linux; Android 10; SM-A920F Build/QP1A.190711.020; 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 1090534.4 Ops/sec
if 397774016.0 Ops/sec
ternary 398066528.0 Ops/sec
Script Preparation code:
Tests:
  • Math.max/min

  • if

  • ternary