Test name | Executions per second |
---|---|
normal object | 3372198.5 Ops/sec |
mutated | 3417933.8 Ops/sec |
<!--your preparation HTML code goes here-->
'use strict';
class a {a=3;b(){blur()}}
class b {a=3;b(){blur()}}
let obj1 = new a
let obj2 = new a
Reflect.setPrototypeOf(obj2, b.prototype)
obj1.a = 2
obj1.a
delete obj1.a
obj1.b()
'a'in obj1
Object.defineProperty(obj1,'a',{value:2})
obj2.a = 2
obj2.a
delete obj2.a
obj2.b()
'a'in obj2
Object.defineProperty(obj2,'a',{value:2})