title: jquery vs native browser javascript performance
body: <p>I know that jQuery's main purpose is not to optimize performance.
  But I made this simple test, and I find the difference quite big ( jQuery is ~95% slower... )</p>
  
  <pre><code>(jQuery)
      var i = 10000;
      while (i--) {
        $('body').css('min-width', i + '1px');
      }
  
  (native javascript)
      var i = 10000;
      while (i--) {
        document.getElementsByTagName('body')[0].style['min-width'] = i + '1px';
      }
  </code></pre>
  
  <p><a href="http://jsperf.com/333444/2" rel="nofollow">http://jsperf.com/333444/2</a></p>
  
  <p>Why is there so big difference?</p>