Over-Specifying test

JavaScript performance comparison

Test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<div id="main-work">
        <div class="main-work">
                <table class="data">
                        <tr><td><span class="rating">Hey</span></td></tr>
                </table>
        </div>
</div>

Preparation code output

Hey

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
long selectors
var $selector = $('div#main-work div.main-work table.data tr td span.rating');
alert($selector.text());
pending…
short selectors
var $selector = $('.rating');
alert($selector.text());
pending…

You can edit these tests or add even more tests to this page by appending /edit to the URL.

Compare results of other browsers

0 comments

Add a comment