jquery 1.7.1 vs 1.4.3
JavaScript performance comparison
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.3/jquery.min.js"></script>
<script> var $jq163 = jQuery.noConflict( true ); </script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script> var $jq171 = 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.3 by id |
|
pending… |
1.7.1 by id |
|
pending… |
1.4.3 by class |
|
pending… |
1.7.1 by class |
|
pending… |
1.4.3 descendent tag - class |
|
pending… |
1.7.1 descendent tag - class |
|
pending… |
1.4.3 by attr |
|
pending… |
1.7.1 by attr |
|
pending… |
1.4.3 with regex |
|
pending… |
1.7.1 with regex |
|
pending… |
1.4.3 nth-child(even) |
|
pending… |
1.7.1 nth-child(even) |
|
pending… |
1.4.3 li:last-child |
|
pending… |
1.7.1 li:last-child |
|
pending… |
1.4.3 unquoted attr with simpler regex |
|
pending… |
1.7.1 unquoted attr with simpler regex |
|
pending… |
1.4.3 unquoted attr check |
|
pending… |
1.7.1 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
- Revision 20: published
- Revision 21: published by Ervin
- Revision 22: published
- Revision 23: published
- Revision 24: published
- Revision 25: published
- Revision 26: published
- Revision 27: published
- Revision 29: published
- Revision 30: published
- Revision 31: published by nkh
- Revision 32: published
- Revision 33: published
- Revision 34: published
- Revision 35: published
- Revision 36: published
- Revision 37: published by Paul S
- Revision 40: published
- Revision 41: published
- Revision 42: published by Paul Tregoing
0 comments