jQuery 1.7.2 vs. jQuery 1.8.2 vs jQuery 1.9b1 vs jQuery 2.0
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>
<script src="http://code.jquery.com/jquery-1.9.0b1.min.js">
</script>
<script type="text/javascript">
var jQ19 = jQuery.noConflict();
</script>
<script src="http://code.jquery.com/jquery-2.0.0b1.js"></script>
<script type="text/javascript">
var jQ20 = 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 | |
|---|---|---|
2.0 ID Selector |
|
pending… |
1.7.2 ID Selector |
|
pending… |
1.8.2 ID Selector |
|
pending… |
1.9b1 ID Selector |
|
pending… |
2.0 Class Selector |
|
pending… |
1.7.2 Class Selector |
|
pending… |
1.8.2 Class Selector |
|
pending… |
1.9b1 Class Selector |
|
pending… |
2.0 Iteration |
|
pending… |
1.7.2 Iteration |
|
pending… |
1.8.2 Iteration |
|
pending… |
1.9b1 Iteration |
|
pending… |
2.0 CSS Getter |
|
pending… |
1.7.2 CSS Getter |
|
pending… |
1.8.2 CSS Getter |
|
pending… |
1.9b1 CSS Getter |
|
pending… |
2.0 CSS Setter |
|
pending… |
1.7.2 CSS Setter |
|
pending… |
1.8.2 CSS Setter |
|
pending… |
1.9b1 CSS Setter |
|
pending… |
2.0 Find |
|
pending… |
1.7.2 Find |
|
pending… |
1.8.2 Find |
|
pending… |
1.9b1 Find |
|
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
- Revision 2: published by Anderson
- Revision 3: published by jQuery .support values
- Revision 4: published by j79
- Revision 5: published
- Revision 6: published
0 comments