Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-N950F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile Safari/537.36
Chrome Mobile 66
Android 8.0.0
Samsung SM-N950F
6 years ago
Test name Executions per second
Using the spread operator 318061.3 Ops/sec
Using Object.assign 200546.6 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign