Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Windows 7
Desktop
2 years ago
Test name Executions per second
Object access 724476160.0 Ops/sec
Proxy access 9495483.0 Ops/sec
Proxy with get handler access 4004648.8 Ops/sec
Script Preparation code:
AخA
 
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