jQuery#9649 realistic

JavaScript performance comparison

Test case created by orkel

Preparation code

<script src="http://code.jquery.com/jquery-git.js">
</script>
<script>
  var current = jQuery.noConflict();
</script>
<script src="http://dl.dropbox.com/u/7425859/jquery-9649.js">
</script>
<script>
  test = jQuery.noConflict();
</script>
<div id="tester">
</div>
<script>
  cdiv = current("#tester");
  tdiv = test("#tester");
  cdiv.attr( "id", "bla" );
  tdiv.attr( "id", "bla" );
</script>

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
current
cdiv.attr( "id", "bla" );
pending…
test
tdiv.attr( "id", "bla" );
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment