jQuery CSS3 Not vs. .Not() (v41)

Revision 41 of this benchmark created by Irvan on


Preparation HTML

<div id="container">
      <div id="header"> Header </div>
      <div>Div</div>
</div>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
Not() Method
var d = $('div').not('#header');
ready
CSS3 Selector
var d = $('div:not(#header)');
ready

Revisions

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