Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    if else if
    if else
    if if
    switch case
    indexOf
    if != &&
    if == &&
    if != ||
    if ||
    if if if ...

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Chrome 75 on Windows
View result in a separate tab
Test name Executions per second
if else if 137361.5 Ops/sec
if else 3845250.0 Ops/sec
if if 3891398.0 Ops/sec
switch case 150296.2 Ops/sec
indexOf 142789.3 Ops/sec
if != && 115761.5 Ops/sec
if == && 151409.4 Ops/sec
if != || 153078.1 Ops/sec
if || 143828.7 Ops/sec
if if if ... 142117.3 Ops/sec