id vs stupid id 2

JavaScript performance comparison

Test case created by estahn

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<input id="myinput" />
<input id="myinput2" />

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
one
$("#myinput").val(1);
$("#myinput2").val(1);
pending…
two
$("#myinput,#myinput2").val(1);
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