jQuery 1.7.2 vs. jQuery 1.8.2
JavaScript performance comparison
Preparation code
<script src="http://code.jquery.com/jquery-1.7.2.min.js">
</script>
<script type="text/javascript">
var jQ17 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-1.8.2.min.js">
</script>
<script type="text/javascript">
var jQ18 = jQuery.noConflict();
</script>
<div id="idSelector">
</div>
<div class="classSelector">
</div>
<ul id="iteration">
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<div id="cssGetter" style="color: black;">
</div>
<div id="cssSetter" style="color: black;">
</div>
<div id="find">
<span>
</span>
<div>
<strong>
</strong>
</div>
</div>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
1.7.2 ID Selector |
|
pending… |
1.8.2 ID Selector |
|
pending… |
1.7.2 Class Selector |
|
pending… |
1.8.2 Class Selector |
|
pending… |
1.7.2 Iteration |
|
pending… |
1.8.2 Iteration |
|
pending… |
1.7.2 CSS Getter |
|
pending… |
1.8.2 CSS Getter |
|
pending… |
1.7.2 CSS Setter |
|
pending… |
1.8.2 CSS Setter |
|
pending… |
1.7.2 Find |
|
pending… |
1.8.2 Find |
|
pending… |
1.7.2 Non-existent ID |
|
pending… |
1.8.2 Non-existent ID |
|
pending… |
1.7.2 Non-existent Class |
|
pending… |
1.8.2 Non-existent Class |
|
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 Aaron Wood
- Revision 2: published by Aaron Wood
- Revision 3: published
- Revision 5: published
- Revision 6: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published by Anderson Pimentel
- Revision 11: published
- Revision 12: published by disy-mk
- Revision 13: published
- Revision 14: published
- Revision 15: published
- Revision 16: published
- Revision 17: published
- Revision 18: published
- Revision 19: published
- Revision 20: published
- Revision 21: published by Nico
- Revision 22: published by Ligiu Uiorean
- Revision 23: published
- Revision 26: published by Peter Bowyer
- Revision 27: published
- Revision 28: published by gaga
- Revision 29: published
- Revision 30: published by Firoz Khan Patan
- Revision 31: published by Firoz Khan Patan
- Revision 32: published by Firoz Khan Patan
- Revision 33: published by Bartlomiej Rusiniak
- Revision 34: published
- Revision 35: published by Bartlomiej Rusiniak
- Revision 36: published by Firoz Khan Patan
- Revision 37: published
- Revision 38: published
- Revision 39: published by David Laing
- Revision 40: published by Ville
2 comments
So? the graph shows that jQuery 1.8.2 in about half the cases? As in "CSS Getter, Iteration and ID Selector" 1.8.2 shows slower result then 1.7.2? Does that means that jQuery 1.8.2 has improved in only about half?
Free jQuery eBook Update:
http://www.heronote.com/files/jQuery.htm