Run private vs public class methods

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
run private method
class C { 
  constructor() { this.#pri(); }
  #pri() {} 
  pub() {}
}
ready
run public method
class C { 
  constructor() { this.pub(); }
  #pri() {} 
  pub() {}
}
ready

Revisions

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