Tests:
  • Merge 2 Objects with spread

  • Merge 2 Objects with Object.assign

  • Add/Edit one object with spread

  • Add/Edit one object with object.assign

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Merge 2 Objects with spread
    Merge 2 Objects with Object.assign
    Add/Edit one object with spread
    Add/Edit one object with object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105 on Windows
View result in a separate tab
Test name Executions per second
Merge 2 Objects with spread 2649406.5 Ops/sec
Merge 2 Objects with Object.assign 3473269.0 Ops/sec
Add/Edit one object with spread 4568449.5 Ops/sec
Add/Edit one object with object.assign 3906350.0 Ops/sec


;