Using update vs Using Object.assignFastest: Using update (4.3x faster)
169,986,416 ops/sec
39,670,220 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Using update | |
| Using Object.assign |
| Test name | Executions per second |
|---|---|
| ✓ Using update | 278,646,624 Ops/sec |
| Using Object.assign | 69,314,256 Ops/sec |