Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Nexus 6P Build/OPM3.171019.019) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.126 Mobile Safari/537.36
Chrome Mobile 66
Android 8.1.0
Nexus 6P
6 years ago
Test name Executions per second
Using the spread operator 937517.2 Ops/sec
Using Object.assign 415422.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign