OR vs if (v2)

Revision 2 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.