Run details:
Mozilla/5.0 (Android 11; Mobile; rv:94.0) Gecko/94.0 Firefox/94.0
Firefox Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
Using the spread operator 5452768.0 Ops/sec
Using Object.assign 10189411.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign