Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
if else if 312756.5 Ops/sec
if else 191448336.0 Ops/sec
if if 182905008.0 Ops/sec
switch case 302948.9 Ops/sec
indexOf 288812.5 Ops/sec
if != && 278644.8 Ops/sec
if == && 250046.6 Ops/sec
if != || 216786.4 Ops/sec
if || 186746.3 Ops/sec
if if if ... 171261.0 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...


;