find html children in jquery or minified (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>jQuery.noConflict();</script>
<script src="https://maartenbelmans.com/js/minified.js"></script>
<script>
    MINI = require('minified');
    tsc = MINI.$, $$=MINI.$$, EE=MINI.EE;
</script>
<ul id="testUL">
   <li><a href="#">Test 1</a></li>
   <li><a href="#">Test 2</a></li>
   <li><a href="#">Test 3</a></li>
   <li><a href="#">Test 4</a></li>
   <li><a href="#">Test 5</a></li>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
Minified selector
var x = tsc('*', '#testUL', true);
ready
jQuery selector
var x = jQuery('#testUL').children();
ready
Native
var x = document.getElementById('testUL').children;
ready

Revisions

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