Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one year ago
baseline property access
6.3M/s
target[key]
5.3M/s
baseline get function
4.3M/s
optional reflect.get
2.8M/s
reflect.get
2.7M/s
View exact numbers
Test name Executions per second
baseline property access 6,321,582 Ops/sec
target[key] 5,347,606 Ops/sec
baseline get function 4,273,316 Ops/sec
optional reflect.get 2,811,326 Ops/sec
reflect.get 2,680,092 Ops/sec
Script Preparation code:
Tests: