Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36 OPR/69.0.3686.36
Opera 69
Windows
Desktop
4 years ago
Test name Executions per second
Using the spread operator 9283988.0 Ops/sec
Using Object.assign 2066509.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign