spread vs new prop in acc vs new prop by object assign vs just new acc without enumeration vs just old acc without enumerationFastest: new prop in acc (1.6x faster)
72,780,560 ops/sec
44,576,928 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| spread | |
| new prop in acc | |
| new prop by object assign | |
| just new acc without enumeration | |
| just old acc without enumeration |
| Test name | Executions per second |
|---|---|
| ✓ just old acc without enumeration | 84,941,280 Ops/sec |
| just new acc without enumeration | 78,269,824 Ops/sec |
| new prop in acc | 76,229,672 Ops/sec |
| spread | 45,143,272 Ops/sec |
| new prop by object assign | 34,335,056 Ops/sec |