Run details:
Mozilla/5.0 (X11; CrOS x86_64 13099.62.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.83 Safari/537.36
Chrome 84
Chrome OS 13099.62.0
Desktop
4 years ago
Test name Executions per second
Using the spread operator 1911238.6 Ops/sec
Using Object.assign 5713811.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign