Sibling functions vs nested functions (v5)

Revision 5 of this benchmark created on


Setup

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

Test runner

Ready to run.

Testing in
TestOps/sec
Nested
nested.bar();
ready
Sibs
siblings.bar();
ready

Revisions

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