Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.2
Mobile
one year ago
Test name Executions per second
if else if 1065512.5 Ops/sec
if else 6128338.5 Ops/sec
if if 6091212.5 Ops/sec
switch case 1270447.6 Ops/sec
indexOf 1137485.4 Ops/sec
if != && 985907.9 Ops/sec
if == && 1254735.1 Ops/sec
if != || 1244917.1 Ops/sec
if || 1024240.0 Ops/sec
if if if ... 911915.9 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...


;