Object.assign vs For inFastest: For in (1.7x faster)
962,240 ops/sec
551,550 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.assign | |
| For in |
| Test name | Executions per second |
|---|---|
| ✓ For in | 27,327 Ops/sec |
| Object.assign | 23,215 Ops/sec |