Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
4 months ago
Test name Executions per second
Using the spread operator 8546423.0 Ops/sec
Using Object.assign 18443850.0 Ops/sec
Manually copying properties 51300896.0 Ops/sec
Create new object while copying 258482368.0 Ops/sec
Create new object from scratch 250854224.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Manually copying properties

  • Create new object while copying

  • Create new object from scratch


;