jQuery body vs. document.body selector (v23)

Revision 23 of this benchmark created on


Preparation HTML

<script src="https://code.jquery.com/jquery-git2.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
$('body')
$('body');
ready
$('html')
$('html');
ready
$(document.body)
$(document.body);
ready
$(window.document.body)
$(window.document.body);
ready
$(window)
$(window);
ready
$("#runner")
$("#runner");
ready

Revisions

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