effects of re-wrapping jQuery objects
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<table>
<thead>
<tr>
<th>Column One</th>
<th>Column Two</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row one, cell one</td>
<td>Row one, cell two</td>
</tr>
<td>Row two, cell one</td>
<td>Row two, cell two</td>
</tr>
</tbody>
</table>
Preparation code output
| Column One | Column Two |
|---|---|
| Row one, cell one | Row one, cell two | Row two, cell one | Row two, cell two |
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
jQuery object |
|
pending… |
re-wrapped jQuery |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments