member-loookup-test-234123

Benchmark created by ZD on


Setup

var container = {
      fn1: function() {},
      fn2: function() {},
      fn3: function() {}
    }

Test runner

Ready to run.

Testing in
TestOps/sec
direct
container.fn1();
container.fn2();
container.fn3();
ready
lookup
for (var i = 1; i < 4; i++) {
  container["fn" + i]();
}
ready

Revisions

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