jquery 1.4 vs 1.6
JavaScript performance comparison
Info
More direct testing
Preparation code
<div id="test">
<div class="testlink">
<a href="#" id="linkone" title="test">test link</a>
</div>
<div class="testmenu">
<ul>
<li class="menuitem itemone">
<a href="#" title="item 1">menu item 1</a>
</li>
<li class="menuitem itemtwo">
<a href="#" title="item 2">menu item 2</a>
</li>
<li class="menuitem itemthree">
not clickable item 3
</li>
</ul>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script> var $jq14 = jQuery.noConflict( true ); </script>
<script src="//code.jquery.com/jquery-git.js"></script>
<script> var $jq16 = jQuery.noConflict( true ); </script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
1.4 by id |
|
pending… |
1.6 by id |
|
pending… |
1.4 by class |
|
pending… |
1.6 by class |
|
pending… |
1.4 descendent tag - class |
|
pending… |
1.6 descendent tag - class |
|
pending… |
1.4 by attr |
|
pending… |
1.6 by attr |
|
pending… |
1.4 with regex |
|
pending… |
1.6 with regex |
|
pending… |
1.4 nth-child(even) |
|
pending… |
1.6 nth-child(even) |
|
pending… |
1.4 li:last-child |
|
pending… |
1.6 li:last-child |
|
pending… |
1.4 unquoted attr with simpler regex |
|
pending… |
1.6 unquoted attr with simpler regex |
|
pending… |
1.4 unquoted attr check |
|
pending… |
1.6 unquoted attr check |
|
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 Dan Heberden
- Revision 2: published by Dan Heberden
- Revision 3: published by Dan Heberden
- Revision 4: published by Addy Osmani
- Revision 5: published by Addy Osmani
- Revision 6: published
- Revision 7: published by Addy Osmani
- Revision 10: published
- Revision 11: published
- Revision 12: published
- Revision 13: published
- Revision 15: published
- Revision 16: published by Arno Hoogma
- Revision 17: published
- Revision 18: published
- Revision 19: published
0 comments