jQuery 1.4.2 vs 1.6.2 comparisons
JavaScript performance comparison
Preparation code
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
var $162 = jQuery.noConflict();
</script>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
var $144 = jQuery.noConflict();
</script>
<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
var $142 = 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 context62 = $162("div.wrapper");
var context44 = $144("div.wrapper");
var context42 = $142("div.wrapper");
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Get - Class 1.4.2 |
|
pending… |
Get - Class 1.4.4 |
|
pending… |
Get - Class 1.6.2 |
|
pending… |
Context - Class 1.4.2 |
|
pending… |
Context - Class 1.4.4 |
|
pending… |
Context - Class 1.6.2 |
|
pending… |
Find - Class 1.4.2 |
|
pending… |
Find - Class 1.4.4 |
|
pending… |
Find - Class 1.6.2 |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Addy Osmani
- Revision 2: published
- Revision 3: published
- Revision 5: published
- Revision 9: published
- Revision 10: published
- Revision 11: published
- Revision 12: published
0 comments