selector vs find (v38)

Revision 38 of this benchmark created by neotsn on


Description

Test select by id, find "> input"

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="divid">
    <p class="test">
        <input type="text" value="blah" />
    </p>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
selector
$("#divid > input");
ready
find
$('#divid').find("> input");
ready

Revisions

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