Noop vs noop with null statement (v5)

Revision 5 of this benchmark created on


Preparation HTML

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

  function noop7() {
   undefined;
  }

  function noop8() {
   void(0);
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Empty Noop
noop1();
ready
Noop with Null
noop2();
ready
Noop with True
noop3();
ready
Return 0
noop4();
ready
Return False
noop5();
ready
Empty Return
noop6();
ready
undefined
noop7();
ready
void(0)
noop8();
ready

Revisions

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