jquery 1.8.3 vs 1.7.2

JavaScript performance comparison

Revision 46 of this test case created

Info

Comparison of performance between jQuery versions

Replaced jQuery 1.8.3 with jQuery 1.7.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.7.2/jquery.min.js"></script>
<script> var $jq14 = jQuery.noConflict( true ); </script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script> var $jq16 = jQuery.noConflict( true ); </script>
 

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
1.7.2 by id
$jq14('#linkone');
pending…
1.8.3 by id
$jq16('#linkone')
pending…
1.7.2 by class
$jq14('.menuitem');
pending…
1.8.3 by class
$jq16('.menuitem');
pending…
1.7.2 descendent tag - class
$jq14('div.testmenu a');
pending…
1.8.3 descendent tag - class
$jq16('div.testmenu a');
pending…
1.7.2 unquoted attr check
$jq14('div[title=test]');
pending…
1.8.3 unquoted attr check
$jq16('div[title=test]');
pending…
1.7.2 generic descendant
$jq14('body div');
pending…
1.8.3 generic descendant
$jq16('body div');
pending…
1.7.2 tag
$jq14('div');
pending…
1.8.3 tag
$jq16('div');
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:

0 comments

Add a comment