Script Preparation code:
AخA
 
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
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
    Getter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
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
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Object access 14295031.0 Ops/sec
Proxy access 13900367.0 Ops/sec
Proxy with get handler access 12366722.0 Ops/sec
Getter 13572030.0 Ops/sec