Run details:
Mozilla/5.0 (Android 13; Mobile; rv:107.0) Gecko/107.0 Firefox/107.0
Firefox Mobile 107
Android
Mobile
2 years ago
Test name Executions per second
Using the spread operator 5770622.5 Ops/sec
Using Object.assign 8186299.5 Ops/sec
Babel 936041.9 Ops/sec
Script Preparation code:
Tests:
  • Using the spread operator

  • Using Object.assign

  • Babel