OR vs if (v10)

Revision 10 of this benchmark created on


Teardown


    var caseTrue = false;
    
        
    function sum() {
      var j = 100;
      var i = 10;
      var sum;
    }
  

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.