Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142
Linux
Desktop
6 months ago
Use of simple getter
131.6M/s
Use of defineProperty
122.3M/s
Proxy with get handler access
33.2M/s
Proxy with get reflect handler access
17.7M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Use of simple getter
|
131,628,720 Ops/sec |
|
Object access
|
125,948,680 Ops/sec |
|
Use of defineProperty
|
122,341,152 Ops/sec |
|
Proxy access
|
47,683,156 Ops/sec |
|
Proxy with get handler access
|
33,231,332 Ops/sec |
|
Proxy with get reflect handler access
|
17,665,622 Ops/sec |
Tests:
-
Object access
-
Proxy access
-
Proxy with get handler access
-
Use of simple getter
-
Use of defineProperty
-
Proxy with get reflect handler access