jquery 1.4.2 vs 1.8.2

JavaScript performance comparison

Revision 32 of this test case created by

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="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script> var $jq14 = jQuery.noConflict( true ); </script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script> var $jq18 = jQuery.noConflict( true ); </script>

    

Preparation code output

<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>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
1.4 by id
$jq14('#linkone');
pending…
1.8 by id
$jq18('#linkone')
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.

0 Comments