Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Mac OS X 10.15.7
Desktop
one year ago
baseline get function
83.6M/s
baseline property access
69.7M/s
optional reflect.get
22.8M/s
target[key]
22.5M/s
reflect.get
16.7M/s
View exact numbers
Test name Executions per second
baseline get function 83,604,880 Ops/sec
baseline property access 69,684,904 Ops/sec
optional reflect.get 22,752,294 Ops/sec
target[key] 22,547,712 Ops/sec
reflect.get 16,723,278 Ops/sec
Script Preparation code:
Tests: