querySelector

Benchmark created by Afonso on


Preparation HTML

<ul id="ul">
    </li>
        <p></p>
        <div class="foo">text</div>
        <p></p>
    <li>
</ul>
<script>
  var ul = document.getElementById("ul");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
div.foo
ul.querySelector("div.foo")
ready
.foo
ul.querySelector(".foo")
ready

Revisions

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

  • Revision 1: published by Afonso on