Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.93 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 86
iOS 14.1
Mobile
3 years ago
Test name Executions per second
Using the spread operator 1963384.2 Ops/sec
Using Object.assign 5205840.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign


;