Document.body vs document.getElementsByTagName('body')[0] (v6)

Revision 6 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Separate if Statements
if (!document.getElementsByTagName) return false;
if (!document.createElement) return false;
if (!document.createTextNode) return false;
ready
One if statement
if (!document.getElementsByTagName || !document.createElement || !document.createTextNode) return false;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.