asdfasdf253323sdf

JavaScript performance comparison

Test case created

Info

asdfasdf253323sdf

Preparation code

<div>
  <p><strong>YO</strong></p>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Preparation code output

YO

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jq
$('div p strong').click(function() {
  for(var i = 0; i < 5000; i++) {
    $(this).css('color', 'yellow');
  }
});
pending…
not jq
$('div p strong').click(function() {
  var s = $(this);
  for(var i = 0; i < 5000; i++) {
    s.css('color', 'yellow');
  }
});
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