Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36 OPR/53.0.2907.99
Opera 53
Mac OS X 10.13.5
Desktop
6 years ago
Test name Executions per second
Using the spread operator 1481880.6 Ops/sec
Using Object.assign 1156382.6 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign