getElementsByTagName vs getElementsByClassName (v10)

Revision 10 of this benchmark created by BigBossSNK on


Preparation HTML

<figure class="figure"></figure>

Test runner

Ready to run.

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

Revisions

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