Tests:
  • Using the spread operator

  • Using Object.assign

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Using Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79 on Android
View result in a separate tab
Test name Executions per second
Using the spread operator 6261063.5 Ops/sec
Using Object.assign 1034465.1 Ops/sec