Script Preparation code:
x
 
var count = 0;
Tests:
  • if else

     
    for (var i = 0; i < 1000; i++) {
        if (i > 500) {
            count=+2;
        } else {
             count=+1;
        }
    }
  • If and

     
    for (var i = 0; i < 1000; i++) {
        if (i > 500) {
           count=+1;
        } 
      count=+1;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    if else
    If and

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95 on Windows
View result in a separate tab
Test name Executions per second
if else 741655.5 Ops/sec
If and 629939.5 Ops/sec