Test name | Executions per second |
---|---|
Property | 6140029.0 Ops/sec |
Symbol | 6212467.5 Ops/sec |
class Propertied {
constructor() {
this.key = 1;
}
}
window.Propertied = Propertied;
const symbol = Symbol("key");
class Symboled {
constructor() {
this[symbol] = 1;
}
}
window.Symboled = Symboled;
new Propertied();
new Symboled();