getElementsByTagName vs getElementsByClassName on custom tag (v19)

Revision 19 of this benchmark created on


Preparation HTML

<customtag class="div"></customtag>

Test runner

Ready to run.

Testing in
TestOps/sec
getElementsByTagName
document.getElementsByTagName("customtag");
ready
getElementsByClassName
document.getElementsByClassName("div");
ready

Revisions

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