jQuery Selector Perf - Right-to-Left (v74)

Revision 74 of this benchmark created on


Description

ss

Preparation HTML

<table border="1">
  <tbody>
    <tr>
      <td>
        <a>aa</a>
      </td>

    </tr>
 </tbody>
</table>

  };
</script>

Setup

Benchmark.prototype.setup = function() {
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">

Test runner

Ready to run.

Testing in
TestOps/sec
"Left to Write" Thinking
$('table tbody tr td a');
ready
"Right to Left"
$('table tbody tr td').children('a');
ready
Alternate "Right to Left"
$('table tbody tr td').find('a');
ready

Revisions

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