Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 9 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.5249.126 Mobile Safari/537.36 OPR/72.3.3767.68685
Opera Mobile 72
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 1066873.1 Ops/sec
Using Object.assign 2451846.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign