doc = window.document vs document (v3)

Revision 3 of this benchmark created on


Setup

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

Test runner

Ready to run.

Testing in
TestOps/sec
doc = this.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.