Get Private vs Public properties (v4)

Revision 4 of this benchmark created on


Setup

class C {
  _pub = 1;
  pub = 1;
  get _pub() {
    return this._pub;
  }
}
const c = new C;

Test runner

Ready to run.

Testing in
TestOps/sec
get private prop
c._pub;
ready
get public prop
c.pub;
ready

Revisions

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