jQuery 1.7.1 vs 1.10.2 (v47)

Revision 47 of this benchmark created on


Preparation HTML

<script src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
var $171 = jQuery.noConflict();
</script>


<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
var $1102 = jQuery.noConflict();
</script>

<div class="wrapper">
     <div class="innerWrapper">
          <div class="button">
               <a href="" id="button" class="buttonRef">
                    <span class="buttonText">Text</span>
               </a>
          </div>
     </div>
</div>
<script>
  var context171 = $171("div.wrapper");
  var context1102 = $1102("div.wrapper");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Get - Class 1102
var item = $1102(".buttonRef");
ready
Get - Class 171
var item = $171(".buttonRef");
ready
Context - Class 1.7.1
var item = $171(".buttonRef", context171);
ready
Context - Class 1.10.2
var item = $1102(".buttonRef", context1102);
ready
Find - Class 1.7.1
var item = context171.find(".buttonRef")
ready
Find - Class 1.10.2
var item = context1102.find(".buttonRef")
ready

Revisions

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