title: Javascript static methods vs prototypal/instatiated methods on performance
body: <p>I have been experimenting using static methods in Javascript. Instead of having objects inherit from a prototype, I use duck-typing a lot harder.</p>
  
  <pre><code>var Controller = {};
  Controller.getData = function() {//return data};
  
  // and then in use:
  var page = route.getPage();
  require([page], function(Controller) {
      Controller.getData();
  });
  </code></pre>
  
  <p>I could do this same by creating new objects with the Controller prototype:</p>
  
  <pre><code>function Controller() {};
  Controller.prototype.getData = function() {//return data};
  
  // and then in use:
  var page = route.getPage();
  require([page], function(Controller) {
      var controller = new Controller();
      controller.getData();
  });
  </code></pre>
  
  <p>My gut feeling is that the static method will be faster, but I have no clue. In general, what are the performance discrepancies between these two methods?</p>
  
  <p>TLDR; basically <a href="https://stackoverflow.com/questions/202631/performance-of-using-static-methods-vs-instantiating-the-class-containing-the-me">this</a> question but for Javascript.</p>