jQuery body vs. document.body selector

JavaScript performance comparison

Revision 45 of this test case created by male enhancement

Preparation code

you are actually a just right webmaster. The web site 
loading pace is amazing. It kind of feels that you are doing any unique trick.
In addition, The contents are masterpiece. you have performed a wonderful 
activity on this matter!
      
<script>
Benchmark.prototype.setup = function() {
  FL

};

Benchmark.prototype.teardown = function() {
  FL

};
</script>

Preparation code output

you are actually a just right webmaster. The web site loading pace is amazing. It kind of feels that you are doing any unique trick. In addition, The contents are masterpiece. you have performed a wonderful activity on this matter!

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
$('body')
you are actually a just right webmaster. The web site loading pace is amazing.
It kind of feels that you are doing any unique trick.

In addition, The contents are masterpiece. you have performed a wonderful activity on this matter!
pending…
$(document.body)
you are actually a just right webmaster. The web site loading 
pace is amazing. It kind of feels that you are doing any unique trick.
In addition, The contents are masterpiece. you have performed a wonderful activity on this matter!
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.

0 Comments

you are actually a just right webmaster. The web site loading pace is amazing. It kind of feels that you are doing any unique trick. In addition, The contents are masterpiece. you have performed a wonderful activity on this matter!