Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Access to Proxy vs Object
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Opera/9.8(Android 4.4; FuckAndroid/6788) Mobile
Browser:
Opera 9
Operating system:
Android 4.4
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Object access
699883.6 Ops/sec
Proxy access
660519.6 Ops/sec
Proxy with get handler access
328520.8 Ops/sec
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
object.value;
Proxy access
proxy.value
Proxy with get handler access
proxyWithHandler.value