Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Access to Proxy vs Object test
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/122.0.0.0 Safari/537.36
Browser:
Chrome 122
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Object access
14.3M/s
Proxy access
13.9M/s
Getter
13.6M/s
Proxy with get handler access
12.4M/s
View exact numbers
Test name
Executions per second
✓
Object access
14,295,031 Ops/sec
Proxy access
13,900,367 Ops/sec
Getter
13,572,030 Ops/sec
Proxy with get handler access
12,366,722 Ops/sec
Script Preparation code:
object = { value: 'data' }; proxy = new Proxy(object, {}) proxyWithHandler = new Proxy(object, { get(target, prop, receiver) { return 'data' } }) objectGetter = { get value() { return 'data' } }
Tests:
Object access
object.value;
Proxy access
proxy.value
Proxy with get handler access
proxyWithHandler.value
Getter
objectGetter.value