jquery children vs find
JavaScript performance comparison
Preparation code
<ul id="lists">
<li class="item">
item1
</li>
<li class="item">
item2
</li>
<li class="item">
item3
</li>
<li class="item">
item4
</li>
<li class="item">
item5
</li>
</ul>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
Preparation code output
- item1
- item2
- item3
- item4
- item5
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
find |
|
pending… |
find with class selector |
|
pending… |
children with selector |
|
pending… |
children with selector |
|
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 heeju
- Revision 2: published
- Revision 3: published
0 comments