OR vs if (v9)

Revision 9 of this benchmark created on


Teardown


    var caseTrue = false;
    
        
    function sum() {
      return 100 + 10;
    }
  

Test runner

Ready to run.

Testing in
TestOps/sec
OR
var sum = caseTrue || sum();
ready
IF
var sum = caseTrue;

if (!caseTrue) {
  sum = sum();
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.