Selectors: #id vs tag

Benchmark created on


Preparation HTML

<div id=a></div>

Test runner

Ready to run.

Testing in
TestOps/sec
#id
document.querySelector("#a");
ready
tag
document.querySelector("div");
ready

Revisions

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