Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Atom/15.0.0.13 Safari/537.36
Chrome 94
Windows
Desktop
2 years ago
Test name Executions per second
Using the spread operator 1017054.4 Ops/sec
Using Object.assign 2651331.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign


;