vyborka

Benchmark created on


Preparation HTML

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


<div id=menu>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a><a class='link' href="http://jquery.com">jQuery</a><a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a><a class='link' href="http://jquery.com">jQuery</a><a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
<a class='link' href="http://jquery.com">jQuery</a>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
get nativ by id
document.getElementsByClassName('link');
ready
jq
$('.link');
ready
js 2
var manu = document.getElementById('menu')
manu.getElementsByClassName('link');
ready
jq 2
$('#menu').find('.link');
ready

Revisions

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