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

  • Using Object.assign