css descendent vs jquery children

Benchmark created on


Preparation HTML

<ul class="slides">
<li class="slide"></li><li class="slide"></li><li class="slide"></li><li class="slide"></li><li class="slide"></li>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
css descendent
var slides = $('.slides > .slide');
ready
jquery children
var slides = $('.slides').children('.slide');
ready

Revisions

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