getElementsByTagName vs getElementsByClassName (v22)

Revision 22 of this benchmark created on


Preparation HTML

<div>
  <div class="ccll"></div>

</div>

Test runner

Ready to run.

Testing in
TestOps/sec
getElementsByTagName

document.getElementsByClassName("ccll");
ready
getElementsByClassName
document.getElementsByTagName("div");
ready

Revisions

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