Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Mac OS X 10.13
Desktop
3 years ago
Test name Executions per second
Using the spread operator 3131033.8 Ops/sec
Using Object.assign 3848664.5 Ops/sec
Babel 1331082.2 Ops/sec
Script Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Babel