Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-G780G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/17.0 Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 1738160.0 Ops/sec
Using Object.assign 4618638.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign