Tests:
  • Using the spread operator

  • Using Object.assign

  • Using Native assignment.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    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: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36
Chrome 69 on Mac OS X 10.12.6
View result in a separate tab
Test name Executions per second
Using the spread operator 2381783.0 Ops/sec
Using Object.assign 3596642.0 Ops/sec
Using Native assignment. 352089000.0 Ops/sec