Not or double class

JavaScript performance comparison

Test case created

Preparation code

<script src=""></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>

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();
$('#list .test').not('.active').hide();

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

Compare results of other browsers


Comment form temporarily disabled.

Add a comment