Script Preparation code:
AخA
 
object = { value: 'data' };
proxy = new Proxy(object, {})
proxyGet = new Proxy(object, {
    get(target, prop, receiver) {
        return target[prop]
    }
})
props = {}
Object.defineProperty(props, "value", {get() {return "data"}, set() {}})
Tests:
  • Object access

     
    object.value;
  • Proxy access

     
    proxy.value
  • Proxy with get handler access

     
    proxyGet.value
  • Property

     
    props.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
    Property

    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/125.0.0.0 Safari/537.36
Chrome 125 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Object access 13625939.0 Ops/sec
Proxy access 13287284.0 Ops/sec
Proxy with get handler access 11373825.0 Ops/sec
Property 12789968.0 Ops/sec