jquery 1.9 vs 2.0b1
JavaScript performance comparison
Info
Comparison of performance between jQuery versions
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="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<script> var $jq19 = jQuery.noConflict( true ); </script>
<script src="http://code.jquery.com/jquery-2.0.0b1.min.js"></script>
<script> var $jq20 = 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.9 by id |
|
pending… |
2.0 by id |
|
pending… |
1.9 by class |
|
pending… |
2.0 by class |
|
pending… |
1.9 descendent tag - class |
|
pending… |
2.0 descendent tag - class |
|
pending… |
1.9 unquoted attr check |
|
pending… |
2.0 unquoted attr check |
|
pending… |
1.9 generic descendant |
|
pending… |
2.0 generic descendant |
|
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