some jquery selectors performance tests

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

Revisions

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