Tests:
  • Using update

    x
     
    const firstObject = {}
    firstObject.sample1 = 'Hello world';
    firstObject.sample2 = 'foo bar';
  • Using Object.assign

     
    const firstObject = {  }
    const secondObject = { ...firstObject, sample1: 'foo bar' }
    const finalObject = { ...secondObject, sample2: 'Hello world' }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Using update
    Using Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Linux
View result in a separate tab
Test name Executions per second
Using update 119415592.0 Ops/sec
Using Object.assign 34574624.0 Ops/sec