IF vs &&

Benchmark created by heeju on


Preparation HTML

<script>
var a = true;
function func(){
  return false;
}
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
IF
if(a) func();
ready
&&
a && func();
ready

Revisions

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

  • Revision 1: published by heeju on