getElementsByName vs. jQuery Selektor (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<div id="map">
<div id="test"></div>
</div>
<script>
  var map = $('#map');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery Selektor
$('div#test');
ready
Native
document.getElementById('test');
ready
jquery only id
$('#test');
ready

Revisions

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