Run details:
Mozilla/5.0 (Linux; Android 8.0.0; MI 6 Build/OPR1.170623.027) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.156 Mobile Safari/537.36
Chrome Mobile 64
Android 8.0.0
Mobile
6 years ago
Test name Executions per second
Using the spread operator 1107436.4 Ops/sec
Using Object.assign 717637.9 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign