Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/18.0 Chrome/99.0.4844.88 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 1146893.4 Ops/sec
Using Object.assign 3159468.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign