Run details:
Mozilla/5.0 (Linux; Android 8.0.0; STF-L09 Build/HUAWEISTF-L09) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Chrome Mobile 67
Android 8.0.0
Mobile
6 years ago
Test name Executions per second
Using the spread operator 696900.9 Ops/sec
Using Object.assign 584381.6 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign