Speed comparison of jQuery versions (v107)

Revision 107 of this benchmark created on


Preparation HTML

<div>
  <ul id="menu">
    <li class="menu-item">
    </li>
    <li class="menu-item">
    </li>
    <li class="menu-item">
    </li>
    <li class="menu-item">
    </li>
    <li class="menu-item">
    </li>
    <li class="menu-item">
    </li>
  </ul>
</div>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js">
</script>
<script>
  var $jq16 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
</script>
<script>
  var $jq17 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">
</script>
<script>
  var $jq18 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
  var $jq19 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js">
</script>
<script>
  var $jq1100 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
</script>
<script>
  var $jq1101 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
  var $jq1102 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script>
  var $jq1110 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<script>
  var $jq1111 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js">
</script>
<script>
  var $jq1112 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js">
</script>
<script>
  var $jq1113 = $.noConflict(true);
</script>

<script type="text/javascript" src="http://code.jquery.com/jquery-1.12.0.min.js">
</script>
<script>
  var $jq1120 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js">
</script>
<script>
  var $jq200 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js">
</script>
<script>
  var $jq201 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js">
</script>
<script>
  var $jq202 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js">
</script>
<script>
  var $jq203 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js">
</script>
<script>
  var $jq210 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<script>
  var $jq211 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
</script>
<script>
  var $jq213 = $.noConflict(true);
</script>

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js">
</script>
<script>
  var $jq214 = $.noConflict(true);
</script>

<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js">
</script>
<script>
  var $jq220 = $.noConflict(true);
</script>

<script type="text/javascript" src="https://code.jquery.com/jquery-3.0.0-beta1.min.js">
</script>
<script>
  var $jq300 = $.noConflict(true);
</script>

Setup

function tests($) {
      $('#menu').css({
        'backgroud': 'red'
      });
      $('.menu-item').eq(2).hasClass('foo');
    }

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery 1.6.x
tests($jq16);
ready
jQuery 1.7.x
tests($jq17);
ready
jQuery 1.8.x
tests($jq18);
ready
jQuery 1.9.1
tests($jq19);
ready
jQuery 1.10.0
tests($jq1100);
ready
jQuery 1.10.1
tests($jq1101);
ready
jQuery 1.10.2
tests($jq1102);
ready
jQuery 1.11.0
tests($jq1110);
ready
jQuery 1.11.1
tests($jq1111);
ready
jQuery 1.11.2
tests($jq1112);
ready
jQuery 1.11.3
tests($jq1113);
ready
jQuery 2.0.0
tests($jq200);
ready
jQuery 2.0.1
tests($jq201);
ready
jQuery 2.0.2
tests($jq202);
ready
jQuery 2.0.3
tests($jq203);
ready
jQuery 2.1.0
tests($jq210);
ready
jQuery 2.1.1
tests($jq211);
ready
jQuery 2.1.3
tests($jq213);
ready
jQuery 2.1.4
tests($jq214);
ready
jQuery 1.12.0
tests($jq1120);
ready
jQuery 2.2.0
tests($jq220);
ready
jQuery 3.0.0 beta 1
tests($jq300);
ready

Revisions

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