Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Access to Proxy vs Object vs plain proxy
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPad; CPU OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/125.0.6422.51 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 125
Operating system:
iOS 17.4
Device Platform:
Tablet
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Object access
12.3M/s
Proxy access
11.9M/s
only-proxy
11.2M/s
Proxy with get handler access
5.8M/s
View exact numbers
Test name
Executions per second
✓
Object access
12,339,471 Ops/sec
Proxy access
11,904,728 Ops/sec
only-proxy
11,176,969 Ops/sec
Proxy with get handler access
5,818,009 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) } }) proxyWithHandler1 = new Proxy({}, { get(target, prop, receiver) { return 'data' } })
Tests:
Object access
object.value;
Proxy access
proxy.value
Proxy with get handler access
proxyWithHandler.value
only-proxy
proxyWithHandler1.value