Tests:
  • Object.assign

  • spread operator

  • Object.assign with empty object to start with

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.assign
    spread operator
    Object.assign with empty object to start with

    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: 4 years ago)
Mozilla/5.0 (Linux; Android 9; Nokia 8 Sirocco) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73 on Android
View result in a separate tab
Test name Executions per second
Object.assign 1730213.0 Ops/sec
spread operator 970380.4 Ops/sec
Object.assign with empty object to start with 1610576.0 Ops/sec