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) | 13,418 Ops/sec |
| Using Object.assign (filtered) | 13,113 Ops/sec |
| Using Object.assign | 12,977 Ops/sec |
| Using the spread operator (known change) | 12,944 Ops/sec |
| Using the spread operator (filter) | 12,631 Ops/sec |
| Using the spread operator | 12,422 Ops/sec |