Using the spread operator vs Using Object.assign 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 the spread operator | |
| Using Object.assign | |
| 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 the spread operator (known change) | 6,579 Ops/sec |
| Using Object.assign (known change) | 6,478 Ops/sec |
| Using Object.assign (filtered) | 5,364 Ops/sec |
| Using the spread operator (filter) | 5,213 Ops/sec |
| Using Object.assign | 2,412 Ops/sec |
| Using the spread operator | 2,265 Ops/sec |