member-loookup-test-234123 (v2)

Revision 2 of this benchmark created on


Setup

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

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
d1
container.fn1();
ready
ml1
container[n]();
ready

Revisions

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