Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Linux
Desktop
5 years ago
Test name Executions per second
Using Object.assign 2628991.0 Ops/sec
Using spread operator 4136048.8 Ops/sec
Using a plain initialization 1178360.6 Ops/sec
Script Preparation code:
Tests:
  • Using Object.assign

  • Using spread operator

  • Using a plain initialization


;