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

  • Using Object.assign