Using Object.assign vs Using the spread operator vs Using Object.assign (known change) vs Using the spread operator (known change) vs Using Object.assign (filtered) vs Using the spread operator (filter)| Test case name | Result |
|---|---|
| Using Object.assign | |
| Using the spread operator | |
| Using Object.assign (known change) | |
| Using the spread operator (known change) | |
| Using Object.assign (filtered) | |
| Using the spread operator (filter) |
| Test name | Executions per second |
|---|---|
| ✓ Using Object.assign (known change) | 7,426 Ops/sec |
| Using the spread operator (known change) | 6,986 Ops/sec |
| Using Object.assign (filtered) | 5,664 Ops/sec |
| Using the spread operator (filter) | 5,496 Ops/sec |
| Using the spread operator | 3,481 Ops/sec |
| Using Object.assign | 1,566 Ops/sec |