Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-J337AZ Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36
Chrome Mobile 70
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
Using the spread operator 438335.3 Ops/sec
Using Object.assign 429968.8 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign