jquery_cached

JavaScript performance comparison

Revision 6 of this test case created

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<h1>Header</h1>

Preparation code output

Header

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jQuery
$('h1').addClass('inactive');
$('h1').text('hello');
$('h1').css("color", "red");
$('h1').height(200);
pending…
jQuery Chaining
$('h1')
  .addClass('inactive')
  .text('hello')
  .css("color", "red")
  .height(200);
pending…
jQuery Cached
var $h1 = $('h1');

$h1.addClass('inactive');
$h1.text('hello');
$h1.css("color", "red");
$h1.height(200);
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