Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Windows
Desktop
3 years ago
Test name Executions per second
if else if 69813.7 Ops/sec
if else 131293408.0 Ops/sec
if if 127490968.0 Ops/sec
switch case 69682.5 Ops/sec
indexOf 68880.4 Ops/sec
if != && 68943.5 Ops/sec
if == && 68881.4 Ops/sec
if != || 69794.1 Ops/sec
if || 68855.6 Ops/sec
if if if ... 69834.0 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...


;