Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Safari 16
Linux
Desktop
one year ago
Test name Executions per second
Using the spread operator 4182246.8 Ops/sec
Using Object.assign 2240298.2 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign