Test name | Executions per second |
---|---|
getElementById | 3025370.2 Ops/sec |
getElementsByClassName | 2229492.5 Ops/sec |
<div id="footer-info" class="clearfix test"></div>
var el = document.getElementById('footer-info');
var el = document.getElementsByClassName('test');