Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
9 months ago
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
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...