Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (5)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 OPR/55.2.2719.50740
Opera Mobile 55
Android 8.1.0
Mobile
4 years ago
Test name Executions per second
Using the spread operator 1780873.4 Ops/sec
Using Object.assign 486884.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign