just-get-html-element (v2)

Revision 2 of this benchmark created by Hugo Dias on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
var html = jQuery('html');
ready
Vanilla - Tag Name
var html = document.getElementsByTagName('html')[0];
ready
Vanilla - Query Selector
var html = document.querySelector('html');
ready
Vanilla - Body Parent Node
var html = document.body.parentNode;
ready
Vanilla - document.documentElement
var html = document.documentElement;
ready

Revisions

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