with spread operator vs with mutation vs with object assign vs with for...of loop vs with for loop| Test case name | Result |
|---|---|
| with spread operator | |
| with mutation | |
| with object assign | |
| with for...of loop | |
| with for loop |
| Test name | Executions per second |
|---|---|
| ✓ with for loop | 1,206 Ops/sec |
| with for...of loop | 1,133 Ops/sec |
| with mutation | 741 Ops/sec |
| with object assign | 26 Ops/sec |
| with spread operator | 1 Ops/sec |