jQuery children vs find (v29)

Revision 29 of this benchmark created on


Description

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

Preparation HTML

<body>
  <div>
    <span>
    </span>
  </div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
find
$('body').find('span');
ready
id
$('body').children().children();
ready

Revisions

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