tt-js-class-search

JavaScript performance comparison

Revision 4 of this test case created by dameleon

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://zeptojs.com/zepto.min.js"></script>
<script src="https://raw.github.com/html5mgithub/jQ.Mobi/master/jq.mobi.min.js"></script>
<script src="http://jsrun.it/damele0n/9G8I/js"></script>

<div id="id_element">hogehoge</div>

<div class="class_root">
    <div class="class_child">
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
        <div class="class_grandson">hogehoge</div>
    </div>
</div>

Preparation code output

hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge
hogehoge

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
tt.js
tt(".class_grandson");
pending…
jQuery
jQuery(".class_grandson");
pending…
jQMobi
jq(".class_grandson");
pending…
Zepto
Zepto(".class_grandson");
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