Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113
Android
Mobile
one year ago
Test name Executions per second
if else if 55946.3 Ops/sec
if else 2373234.0 Ops/sec
if if 2383700.0 Ops/sec
switch case 59320.6 Ops/sec
indexOf 55078.6 Ops/sec
if != && 57333.0 Ops/sec
if == && 58241.7 Ops/sec
if != || 62589.9 Ops/sec
if || 59025.2 Ops/sec
if if if ... 59541.3 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...


;