Run details:
Mozilla/5.0 (Linux; Android 8.1.0; 16th) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.96 Mobile Safari/537.36
Chrome Mobile 78
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
Using the spread operator 9822823.0 Ops/sec
Using Object.assign 2935624.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign