Tests:
  • Assign

    AخA
     
    const obj = {a: { e: { i: 6 } } };
    const i = obj.a.e.i;
    console.log(i);
  • Destructure

     
    const obj = {a: { e: { i: 6 } } };
    const { i } = obj.a.e;
    console.log(i);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Assign
    Destructure

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Chrome 134 on Windows
View result in a separate tab
Test name Executions per second
Assign 32697.6 Ops/sec
Destructure 33048.8 Ops/sec