jquery selector

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="x">
 <div id="y">
<div id="foo">
 <p>1</p>
</div>
 </div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
direct
$("#foo > p").html("<p></p>");
ready
find
$("#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.