dom traversing

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
plain
var x = document.querySelector("div>ul>li");
ready
jQuery
var x = $("div>ul>li");
ready

Revisions

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