OR vs if (v6)

Revision 6 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
(caseTrue) ? caseTrue : sum()
ready

Revisions

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