Noop vs noop with null statement (v2)

Revision 2 of this benchmark created by Uhh on


Preparation HTML

<script>
  function noop1() {
  
  }
  
  function noop2() {
   null;
  }
  
  function noop3() {
   true;
  }
  
  function noop4() {
   return 0;
  }
  
  function noop5() {
   return false;
  }
  
  function noop6() {
   return;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Empty Noop
noop1();
ready
Noop with Null
noop2();
ready
Noop with True
noop3();
ready
noop4();
ready
noop5();
ready
noop6();
ready

Revisions

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