is head object faster

Benchmark created by cody lindley on


Test runner

Ready to run.

Testing in
TestOps/sec
using head object ref
var foo = 'foo';
var myFunction = function() {
    var myFunction = function() {
        var myFunction = function() {
            return window.foo;
            }();
        }();
    }();
ready
not using head object ref
var foo = 'foo';
var myFunction = function() {
    var myFunction = function() {
        var myFunction = function() {
            return foo;
            }();
        }();
    }();
ready

Revisions

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

  • Revision 1: published by cody lindley on