I think document.queryselectorAll is slower then a straight document.getElementsByTagName. Found the following site that is good for javascript performance comparison,
Javascript Performance
This entry was posted in Uncategorized. Bookmark the <a href="https://sujatad.net/uncategorized/javascript-performance/" title="Permalink to Javascript Performance" rel="bookmark">permalink</a>.