Run details:
Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A225M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/16.0 Chrome/92.0.4515.166 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
Using the spread operator 657668.2 Ops/sec
Using Object.assign 1773558.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign