Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1.1
Mobile
one year ago
Test name Executions per second
if else if 1413039.4 Ops/sec
if else 9371106.0 Ops/sec
if if 9070720.0 Ops/sec
switch case 1497031.1 Ops/sec
indexOf 1391161.0 Ops/sec
if != && 1242014.0 Ops/sec
if == && 1491706.6 Ops/sec
if != || 1478992.1 Ops/sec
if || 1269876.8 Ops/sec
if if if ... 1179299.1 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...