Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/75.0.3770.103 Mobile/15E148 Safari/605.1
Chrome Mobile iOS 75
iOS 12.3
Mobile
5 years ago
Test name Executions per second
Using the spread operator 1367051.5 Ops/sec
Using Object.assign 5073725.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign