querySelector

Benchmark created on


Preparation HTML

<div id="foo1"></div>
<div id="foo2"></div>
<div id="foo3"></div>
<div id="foo4"></div>
<div id="foo5"></div>
<div id="foo6"></div>
<div id="foo7"></div>
<div id="foo8"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
querySelector
document.querySelector('#foo4')
ready
getElement
document.getElementById('foo4')
ready

Revisions

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