Run details:
Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A705FN) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/23.0 Chrome/115.0.0.0 Mobile Safari/537.36
Chrome Mobile 115
Android
Mobile
10 months ago
Test name Executions per second
Using the spread operator 1140696.5 Ops/sec
Using Object.assign 2784539.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign