getElementsByTagName vs getElementsByClassName on custom tag (v20)

Revision 20 of this benchmark created on


Preparation HTML

<w></w>
<div class='c'></div>

Test runner

Ready to run.

Testing in
TestOps/sec
getElementsByTagName
document.getElementsByTagName("w");
ready
getElementsByClassName
document.getElementsByClassName("c");
ready

Revisions

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