Run details:
Mozilla/5.0 (Linux; Android 8.1.0; ONEPLUS A5010 Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
Chrome Mobile 68
Android 8.1.0
Mobile
6 years ago
Test name Executions per second
Using the spread operator 1250597.9 Ops/sec
Using Object.assign 1786800.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign