jQuery find

Benchmark created by Cowboy on


Preparation HTML

<ul id="list1"><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li><li>test</li></ul><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
a
$("#list1").find("li")
ready
b
$("#list1 li")
ready
c
$("li", "#list1")
ready
d
$("li", $("#list1"))
ready

Revisions

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