Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Linux
Desktop
one year ago
Use of simple getter
68.8M/s
Use of defineProperty
64.8M/s
Proxy with get handler access
17.6M/s
Proxy with get reflect handler access
13.3M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Use of simple getter
|
68,791,640 Ops/sec |
|
Use of defineProperty
|
64,774,768 Ops/sec |
|
Object access
|
62,372,736 Ops/sec |
|
Proxy access
|
23,619,614 Ops/sec |
|
Proxy with get handler access
|
17,602,118 Ops/sec |
|
Proxy with get reflect handler access
|
13,278,274 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