doc = window.document vs document (v2)

Revision 2 of this benchmark created on


Setup

function this_window_document() {
      var doc = window.document;
    }
    
    function this_document() {
      var doc = document;
    }

Test runner

Ready to run.

Testing in
TestOps/sec
doc = window.document
this_window_document()
ready
doc = document
this_document()
ready

Revisions

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