single-vs-multi-selctor

JavaScript performance comparison

Test case created

Preparation code

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<div id="one"><span>text</span><div>
<div id="two"><span>text</span><div>

Preparation code output

text
text

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
single
$("#one");
$("#two");
pending…
double
$("#one, #two");
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