Tests:
  • Spread operator

    AخA
     
    const obj = { a: 1, b: 'two', c: true };
    const objExt = { ...obj, b: 2 };
  • Property assignment

     
    const obj = { a: 1, b: 'two', c: true };
    obj.b = 2;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Spread operator
    Property assignment

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
Spread operator 86145904.0 Ops/sec
Property assignment 220067696.0 Ops/sec