Run details:
Mozilla/5.0 (Linux; Android 11; motorola one hyper) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.97 Mobile Safari/537.36 OPR/71.2.3718.67195
Opera Mobile 71
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 760848.9 Ops/sec
Using Object.assign 1941827.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign