jquery selector (v15)

Revision 15 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="x">
 <div id="y">
<div id="foo">
 <p>1 <i>1.1</i> <b>1.2</b></p>
 <span><p>2</p></span>
</div>
 </div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
children
$("#foo").children("p").html("<p></p>");
ready
find with children selector
$("#foo").find("> p").html("<p></p>");
ready

Revisions

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