Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Access to Proxy vs Object vs Getters fixed
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Object access
177.3M/s
Proxy access
68.6M/s
Object with getter
64.4M/s
Proxy with get handler access
39.5M/s
View exact numbers
Test name
Executions per second
✓
Object access
177,267,792 Ops/sec
Proxy access
68,648,184 Ops/sec
Object with getter
64,418,728 Ops/sec
Proxy with get handler access
39,520,408 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) } }) objWithGetter = { _val: 'data', get value() { return this._val } }
Tests:
Object access
object.value;
Proxy access
proxy.value
Proxy with get handler access
proxyWithHandler.value
Object with getter
objWithGetter.value