Javascript Performance: What is the fastest no-op implementation

Feb 21, 2016
Test code:
```
  window.testArr = [];

  Benchmark.prototype.setup = function() {
    var NOOP1 = Function();
    var NOOP2 = function() {};
    var NOOP3 = new Function;
    var NOOP4 = Function.prototype;
    var NOOP5 = function() {return;};
    var NOOP6 = function() {return null;};
    function NOOP7() {}
    
    window.testArr.length = 0;
  };
```
See test details on jsperf.com

Performance differences may vary between 0 and 13%. And the verdict is: No-op function is not bottleneck for sure.