Noop vs function prototype

JavaScript performance comparison

Revision 7 of this test case created by Tobias Lundin

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  var NOOP1 = Function;
  var NOOP2 = () => {};
  var NOOP3 = new Function;
  var NOOP4 = Function.prototype;
  var NOOP5 = () => ();
  var NOOP6 = () => null;

};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec

Revisions

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

0 Comments