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

  • Using Object.assign


;