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)
    }
})
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
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Object access
    Proxy access
    Proxy with get handler access
    only-proxy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Ubuntu
View result in a separate tab
Test name Executions per second
Object access 1880421760.0 Ops/sec
Proxy access 423114976.0 Ops/sec
Proxy with get handler access 71692960.0 Ops/sec
only-proxy 104691568.0 Ops/sec