jQuery #selector vs. body #selector (v19)

Revision 19 of this benchmark created by Ashish on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
$('selector')
$('#content');
ready
$(body#selector)
$('section#content');
ready

Revisions

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