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: 8 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121 on Linux
View result in a separate tab
Test name Executions per second
if else if 284360.9 Ops/sec
if else 10210679.0 Ops/sec
if if 10202395.0 Ops/sec
switch case 305578.8 Ops/sec
indexOf 277172.8 Ops/sec
if != && 277893.9 Ops/sec
if == && 225075.3 Ops/sec
if != || 280406.9 Ops/sec
if || 251329.3 Ops/sec
if if if ... 247065.4 Ops/sec


;