jQuery tests on eq()

Benchmark created by John Grande on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<ul>
<script>
for(i=0,j=1000;i<j;i++){
document.write('<li>test</li>');
}
</script>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
eq in jQuery
jQuery('ul li:eq(985)');
ready
eq as function
jQuery('ul li').eq(985);
ready

Revisions

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

  • Revision 1: published by John Grande on