Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0
Firefox 144
Mac OS X 10.15
Desktop
6 months ago
Test name Executions per second
Using the spread operator 8027012.0 Ops/sec
Using Object.assign 17662042.0 Ops/sec
Manual copy 202954384.0 Ops/sec
Script Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Manual copy