Run details:
Mozilla/5.0 (Android 10; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0
Firefox Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Using Object keys and modifying the original object 3548374.0 Ops/sec
Using spread to merge objects 734079.1 Ops/sec
Manually editing every single property (Wanna have this to prove why sometimes there is a manual assign for each property required) 155488528.0 Ops/sec
Script Preparation code:
Tests:
  • Using Object keys and modifying the original object

  • Using spread to merge objects

  • Manually editing every single property (Wanna have this to prove why sometimes there is a manual assign for each property required)