jQuery children vs find (v45)

Revision 45 of this benchmark created on


Description

This testcase compares the performance from .children() and .find()

Preparation HTML

<div class="temp">
<div class="abc"></div>
<div class="bbc"></div>
<div class="cbc"></div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
select
var temp = $('temp');
temp.find('abc');
temp.find('bbc');
temp.find('cbc');
ready
multi select
var temp = $('temp');
temp.find('abc,bbc,ccc');
ready

Revisions

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