Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Mac OS X 10.15.7
Desktop
10 days ago
Test name Executions per second
Object.getOwnPropertyDescriptor() 28651604.0 Ops/sec
Reflect.getOwnPropertyDescriptor() 29688728.0 Ops/sec
Tests:
  • Object.getOwnPropertyDescriptor()

    AخA
     
    let object1 = { property1: 42 };
    Object.getOwnPropertyDescriptor(object1, 'property1');
  • Reflect.getOwnPropertyDescriptor()

     
    let object1 = { property1: 42 };
    Reflect.getOwnPropertyDescriptor(object1, 'property1');