Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Ubuntu
Desktop
one year ago
Test name Executions per second
if else if 306641.8 Ops/sec
if else 216122624.0 Ops/sec
if if 266984128.0 Ops/sec
switch case 309402.4 Ops/sec
indexOf 279131.0 Ops/sec
if != && 280301.3 Ops/sec
if == && 263293.8 Ops/sec
if != || 268307.8 Ops/sec
if || 283449.2 Ops/sec
if if if ... 305675.5 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...