Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Chrome Mobile 120
Android
Mobile
one year ago
Test name Executions per second
Using the spread operator 49061772.0 Ops/sec
Using Object.assign 4286886.0 Ops/sec
Manually copying properties 521690912.0 Ops/sec
Create new object while copying 510394528.0 Ops/sec
Create new object from scratch 1022592448.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Manually copying properties

  • Create new object while copying

  • Create new object from scratch


;