Child Query Selector Test

Benchmark created by nk on


Preparation HTML

<div id="wrapper">
<div id="item">Hi</div>
</div>

Setup

var wrapper = document.getElementById('wrapper');

Test runner

Ready to run.

Testing in
TestOps/sec
getElementById
document.getElementById('item');
ready
queryselector
wrapper.querySelector('#item');
ready

Revisions

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