Run details:
Mozilla/5.0 (Linux; Android 12; SM-A515F) 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 585700.8 Ops/sec
Using Object.assign 1355198.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign