Sibling functions vs nested functions (v9)

Revision 9 of this benchmark created by Alexander on


Setup

var siblings = {
    foo: function() {},
    bar: function() { this.foo(); }
  };
  
  var nested = {
    bar: function () {
      var foo = function() {};
      foo();
    }
  }
  
  var closure = {
    bar: function() {
      (function() {})();
    }
  }

Test runner

Ready to run.

Testing in
TestOps/sec
Siblings
siblings.bar();
ready
Nested
nested.bar();
ready
Test 3
closure.bar()
ready

Revisions

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