querySelector

Benchmark created by Jakub on


Preparation HTML

<div id='s'>
<div style='height: 100px; width:100px'></div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
qs
document.querySelector('#s div')[0];
ready
ge
document.getElementById('s').getElementsByTagName('div')[0];
ready

Revisions

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