Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
if else if 89917.6 Ops/sec
if else 86888016.0 Ops/sec
if if 87419584.0 Ops/sec
switch case 92428.6 Ops/sec
indexOf 87237.2 Ops/sec
if != && 89169.9 Ops/sec
if == && 94358.2 Ops/sec
if != || 92468.2 Ops/sec
if || 91694.2 Ops/sec
if if if ... 90838.5 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...