Test name | Executions per second |
---|---|
Object.getOwnPropertyDescriptor() | 28651604.0 Ops/sec |
Reflect.getOwnPropertyDescriptor() | 29688728.0 Ops/sec |
let object1 = { property1: 42 };
Object.getOwnPropertyDescriptor(object1, 'property1');
let object1 = { property1: 42 };
Reflect.getOwnPropertyDescriptor(object1, 'property1');