Sizzle vs jQuery

JavaScript performance comparison

Test case created

Preparation code

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

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

Preparation code output

  • 1
  • 2

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jQuery
$("div");
$("#idTest");
$("ul li")
 
pending…
Sizzle
Sizzle("div");
Sizzle("#idTest");
Sizzle("div ul li")
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment