jQuery find performance
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<table id="tbl" style="border: solid 1px black">
<tr>
<td class="class1">
1
</td>
<td class="class2">
a
</td>
</tr>
<tr>
<td class="class1">
2
</td>
<td class="class2">
b
</td>
</tr>
<tr>
<td class="class1">
3
</td>
<td class="class2">
c
</td>
</tr>
</table>
Preparation code output
| 1 | a |
| 2 | b |
| 3 | c |
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Separate finds |
|
pending… |
1 find |
|
pending… |
through traversing |
|
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 2: published
- Revision 3: published by Pooja Shah
- Revision 4: published by Pooja Shah
- Revision 5: published by Rain Kesküla
0 comments