jquery 1.8.2 vs 1.5.2
JavaScript performance comparison
Info
Comparison of performance between jQuery versions
Replaced jQuery 1.5.2 with jQuery 1.8.2
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>
<input name="myName" id="myName" class="myName" type="text" />
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script> var $jq152 = jQuery.noConflict( true ); </script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script> var $jq182 = 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.8.2 by id |
|
pending… |
1.5.2 by id |
|
pending… |
1.8.2 by class |
|
pending… |
1.5.2 by class |
|
pending… |
1.8.2 descendent tag - class |
|
pending… |
1.5.2 descendent tag - class |
|
pending… |
1.8.2 unquoted attr check |
|
pending… |
1.5.2 unquoted attr check |
|
pending… |
1.8.2 generic descendant |
|
pending… |
1.5.2 generic descendant |
|
pending… |
1.8.2 id |
|
pending… |
1.5.2 id |
|
pending… |
1.8.2 class |
|
pending… |
1.5.2 class |
|
pending… |
1.8.2 name |
|
pending… |
1.5.2 name |
|
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