jQuery 1.7.2 vs 1.8 rc1 comparisons (v15)

Revision 15 of this benchmark created by FJ on


Preparation HTML

<script src="https://code.jquery.com/jquery-1.8rc1.min.js">
</script>
<script>
  var $18r = jQuery.noConflict();
</script>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js">
</script>
<script>
  var $172 = 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 context18r = $18r("div.wrapper");
  var context172 = $172("div.wrapper");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Get - Class 1.7.2
var item = $172(".buttonRef").val("111");
ready
Find - Class 1.7.2
var item = context172.find(".buttonRef")
ready
Find - Class 1.8rc1
var item = context18r.find(".buttonRef")
ready
Get - Class 1.8rc1
var item = $18r(".buttonRef").val("111");
ready

Revisions

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