Filipe Property accessors

Benchmark created by Filipe merker on


Setup

var PROD = {};
  PROD.clients = {
    init: function() {
      return this.method1();
    },
    method1: function() {
      return 'finished';
    }
  };

Test runner

Ready to run.

Testing in
TestOps/sec
Dot notation
var test = PROD.clients.init();
ready
Bracket notation
var test = PROD['clients'].init();
ready

Revisions

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

  • Revision 1: published by Filipe merker on