jQuery body vs. document.body selector

JavaScript performance comparison

Revision 48 of this test case created by Nu cambogia extract

Preparation code

What's Going down i am new to this, I stumbled upon this I have found It positively useful and it 
has aided me out loads. I'm hoping to contribute & assist different customers like its helped me.
Great job.
      
<script>
Benchmark.prototype.setup = function() {
  What's Going down i am new to this, I stumbled upon this I 
  have found It positively useful and it has aided me out loads.
  
  I'm hoping to contribute & assist different customers like its helped me.
  Great job.

};

Benchmark.prototype.teardown = function() {
  What's Going down i am new to this, I stumbled 
  upon this I have found It positively useful and it has aided me out loads.
  I'm hoping to contribute & assist different customers like its helped 
  me. Great job.

};
</script>

Preparation code output

What's Going down i am new to this, I stumbled upon this I have found It positively useful and it has aided me out loads. I'm hoping to contribute & assist different customers like its helped me. Great job.

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')
What's Going down i am new to this, I stumbled upon this I have found 
It positively useful and it has aided me out loads. I'm hoping to contribute & assist different customers like its 
helped me. Great job.
pending…
$(document.body)
What's Going down i am new to this, I stumbled upon this I have found 
It positively useful and it has aided me out loads. I'm hoping to contribute & assist different customers like its helped 
me. Great job.
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

What's Going down i am new to this, I stumbled upon this I have found It positively useful and it has aided me out loads. I'm hoping to contribute & assist different customers like its helped me. Great job.