OR vs if (v4)

Revision 4 of this benchmark created on


Teardown


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

Test runner

Ready to run.

Testing in
TestOps/sec
OR
caseTrue || sum();
ready
IF
if (!caseTrue) sum();
 
ready

Revisions

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