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 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Object with getter
1998.2M/s
Object access
1996.9M/s
Proxy access
371.8M/s
Proxy with get handler access
39.8M/s
View exact numbers
Test name
Executions per second
✓
Object with getter
1,998,230,016 Ops/sec
Object access
1,996,894,208 Ops/sec
Proxy access
371,837,152 Ops/sec
Proxy with get handler access
39,844,560 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