Not or double class

JavaScript performance comparison

Test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<ul id="list">
<li class="test active">test 01</li>
<li class="test active">test 02</li>
<li class="test active">test 03</li>
<li class="test hidden">test 04</li>
<li class="test hidden">test 05</li>
<li class="test hidden">test 06</li>
</ul>

Preparation code output

  • test 01
  • test 02
  • test 03

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Double class
$('#list .test.hidden').hide();
pending…
Not
$('#list .test').not('.active').hide();
pending…

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

Compare results of other browsers

0 comments

Add a comment