jQuery body vs. document.body selector

JavaScript performance comparison

Revision 47 of this test case created by Ketone Slim XT

Preparation code

Thanks , I've just been searching for information approximately this topic for 
a while and yours is the best I've discovered till now.
But, what in regards to the bottom line? Are you certain concerning 
the supply?
      
<script>
Benchmark.prototype.setup = function() {
  Thanks , I've just been searching for information approximately this topic for a while and yours is the best I've discovered 
  till now. But, what in regards to the bottom line? Are you certain concerning the supply?

};

Benchmark.prototype.teardown = function() {
  Thanks , I've just been searching for information approximately this topic for 
  a while and yours is the best I've discovered till now.
  But, what in regards to the bottom line? Are you certain concerning the supply?

};
</script>

Preparation code output

Thanks , I've just been searching for information approximately this topic for a while and yours is the best I've discovered till now. But, what in regards to the bottom line? Are you certain concerning the supply?

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')
Thanks , I've just been searching for information approximately this topic for a while and 
yours is the best I've discovered till now. But, what 
in regards to the bottom line? Are you certain concerning the supply?
pending…
$(document.body)
Thanks , I've just been searching for information approximately this topic for a while and yours is 
the best I've discovered till now. But, what in regards to the bottom line?

Are you certain concerning the supply?
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

Thanks , I've just been searching for information approximately this topic for a while and yours is the best I've discovered till now. But, what in regards to the bottom line? Are you certain concerning the supply?