Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Access to Proxy vs Object 2
(version: 0)
Comparing performance of:
Object access vs Proxy access vs Proxy with get handler access
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
object = { value: 'data' }; proxy = new Proxy(object, {}); proxyWithHandler = new Proxy(object, { get(target, prop, receiver) { return Reflect.get(target, prop, receiver); } });
Tests:
Object access
const v = object.value;
Proxy access
const v = proxy.value;
Proxy with get handler access
const v = proxyWithHandler.value;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Object access
Proxy access
Proxy with get handler access
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?