jQuery children vs find
JavaScript performance comparison
Info
This testcase compares the performance from .children() and .find()
Preparation code
<form id="formElem" name="formElem" action="" method="post">
<fieldset class="step">
<img src="1.jpg" >
</fieldset>
<fieldset class="step">
<img src="2.jpg" >
</fieldset>
<fieldset class="step">
<img src="3.jpg" >
</fieldset>
</form>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
children |
|
pending… |
find |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Andreas Göbel
- Revision 3: published by zarjay
- Revision 5: published by tsb
- Revision 6: published
- Revision 7: published
- Revision 8: published by zarjay and last updated
- Revision 9: published
- Revision 10: published by Sam Blowes
- Revision 11: published
- Revision 12: published
- Revision 13: published
- Revision 14: published
- Revision 15: published
- Revision 18: published
0 comments