Sizzle vs jQuery (v4)

Revision 4 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/sizzle/1.9.1/sizzle.min.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>

<div id='idTest'>
 <ul>
    <li>1</li>
    <li>2</li>
    
 </ul>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery
$("div");
$("#idTest");
$("ul li")
 
ready
Sizzle
Sizzle("div");
Sizzle("#idTest");
Sizzle("ul li")
ready

Revisions

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