Run details:
Mozilla/5.0 (iPhone; CPU OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/24.1 Mobile/15E148 Safari/605.1.15
Mobile Safari 13
iOS 13.3.1
Mobile
4 years ago
Test name Executions per second
Using the spread operator 1429247.2 Ops/sec
Using Object.assign 5497118.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign