jQuery 1.9.1 vs. 2.0.0 beta
JavaScript performance comparison
Preparation code
<script src="//code.jquery.com/jquery-1.9.1.min.js">
</script>
<script>
var jQ19 = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-2.0.0b1.min.js">
</script>
<script>
var jQ20b = 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.9.1 ID Selector |
|
pending… |
2.0.0b ID Selector |
|
pending… |
1.9.1 Class Selector |
|
pending… |
2.0.0b Class Selector |
|
pending… |
1.9.0 Iteration |
|
pending… |
2.0.0b Iteration |
|
pending… |
1.9.0 CSS Getter |
|
pending… |
2.0.0b CSS Getter |
|
pending… |
1.9.0 CSS Setter |
|
pending… |
2.0.0 CSS Setter |
|
pending… |
1.9.0 Find |
|
pending… |
2.0.0b Find |
|
pending… |
1.9.0 Non-existent ID |
|
pending… |
2.0.0b Non-existent ID |
|
pending… |
1.9.0 Non-existent Class |
|
pending… |
2.0.0b Non-existent Class |
|
pending… |
1.9.0 Filter-next-prev |
|
pending… |
2.0.0b Filter-next-prev |
|
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
1 comment
Free jQuery & jQuery UI eBook Update: http://www.heronote.com/files/jQuery.htm