spread vs literal vs assignFastest: literal (8.3x faster)
20,625 ops/sec
6,903 ops/sec
2,487 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| spread | |
| literal | |
| assign |
| Test name | Executions per second |
|---|---|
| ✓ literal | 18,431 Ops/sec |
| spread | 8,700 Ops/sec |
| assign | 2,942 Ops/sec |