Script Preparation code:
AخA
 
var test = 'test5'
Tests:
  • if if

     
    if (test === 'test1') {
      return true;
    }
    if (test === 'test2') {
      return true;
    }
    if (test === 'test3') {
      return true;
    }
    if (test === 'test4') {
      return true;
    }
    if (test === 'test5') {
      return true;
    }
  • if else

     
    if (test === 'test1') {
      return true;
    } else if (test === 'test2') {
      return true;
    } else if (test === 'test3') {
      return true;
    } else if (test === 'test4') {
      return true;
    } else if (test === 'test5') {
      return true;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    if if
    if else

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
if if 5133327.5 Ops/sec
if else 5146972.5 Ops/sec