Tests:
  • Using the spread operator

  • Using Object.assign

  • Using Object.assign with into empty object

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Using Object.assign
    Using Object.assign with into empty object

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Firefox 93 on Windows
View result in a separate tab
Test name Executions per second
Using the spread operator 8274770.0 Ops/sec
Using Object.assign 18503360.0 Ops/sec
Using Object.assign with into empty object 11464140.0 Ops/sec