Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
if else if 1259696.6 Ops/sec
if else 10641704.0 Ops/sec
if if 10508549.0 Ops/sec
switch case 1406132.8 Ops/sec
indexOf 1310103.5 Ops/sec
if != && 1209453.8 Ops/sec
if == && 1430783.1 Ops/sec
if != || 1436253.5 Ops/sec
if || 1269658.5 Ops/sec
if if if ... 1209084.8 Ops/sec
Script Preparation code:
Tests:
  • if else if

  • if else

  • if if

  • switch case

  • indexOf

  • if != &&

  • if == &&

  • if != ||

  • if ||

  • if if if ...


;