effects of re-wrapping jQuery objects

JavaScript performance comparison

Test case created by davidThomas

Preparation code

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

      <th>Column One</th>
      <th>Column Two</th>
      <td>Row one, cell one</td>
      <td>Row one, cell two</td>
      <td>Row two, cell one</td>
      <td>Row two, cell two</td>

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.

Testing in unknown unknown
Test Ops/sec
jQuery object
var cell = $('tbody td').first();

re-wrapped jQuery
var cell = $('tbody td').first();


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

Compare results of other browsers


Comment form temporarily disabled.

Add a comment