Test name | Executions per second |
---|---|
new operator | 32182120.0 Ops/sec |
Object.create function | 3750929.8 Ops/sec |
var A = (function () {
function A(b) {
this.b = b;
}
return A;
}());
new A(1);
Object.create(A.prototype, {a: {value: 1}});