Script Preparation code:
AخA
 
window.basic = {a : 1, b: 2};
window.proxy = new Proxy({a : 1, b: 2}, {get : (t, p) => t[p]})
window.proto = Object.setPrototypeOf({}, {a : 1, b: 2})
window.create = Object.assign(Object.create(Object.getPrototypeOf({})), {a : 1, b: 2})
Tests:
  • Basic

     
    let a = basic.a;
    let b = basic.b;
  • Proxy

     
    let a = proxy.a;
    let b = proxy.b;
  • Proto

     
    let a = proto.a;
    let b = proto.b;
  • Object.create

     
    let a = create.a;
    let b = create.b;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Basic
    Proxy
    Proto
    Object.create

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Windows
View result in a separate tab
Test name Executions per second
Basic 78862568.0 Ops/sec
Proxy 10050812.0 Ops/sec
Proto 109049048.0 Ops/sec
Object.create 100598160.0 Ops/sec