some jquery selectors performance tests (v6)

Revision 6 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="a">
  <p>
  </p>
</div>
<script>
  $a_div = $('#a');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
$('#a p')
$('#a p')
ready
$('p', $a_div)
$('p', $a_div)
ready
$a_div.find('p')
$a_div.find('p')
ready
$('#a').find('p')
$('#a').find('p')
ready
$('p', $('#a'))
$('p', $('#a'))
ready
$('p', '#a')
$('p', '#a')
ready

Revisions

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