Run details:
Mozilla/5.0 (Android 11; Mobile; rv:109.0) Gecko/113.0 Firefox/113.0
Firefox Mobile 113
Android
Mobile
one year ago
Test name Executions per second
if else if 25091.4 Ops/sec
if else 31389702.0 Ops/sec
if if 31672486.0 Ops/sec
switch case 26816.2 Ops/sec
indexOf 25685.2 Ops/sec
if != && 26799.8 Ops/sec
if == && 26520.5 Ops/sec
if != || 26725.6 Ops/sec
if || 25960.4 Ops/sec
if if if ... 26284.5 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...