Run details:
Mozilla/5.0 (Linux; Android 10; EVR-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
Using the spread operator 1433379.8 Ops/sec
Using Object.assign 3411528.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign