Array splice vs ES6 Object Spread vs Object property assignFastest: Object property assign (3442.6x faster)
50,021,768 ops/sec
1,413,384 ops/sec
14,530 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array splice | |
| ES6 Object Spread | |
| Object property assign |
| Test name | Executions per second |
|---|---|
| ✓ Object property assign | 97,856,160 Ops/sec |
| Array splice | 1,237,005 Ops/sec |
| ES6 Object Spread | 55,839 Ops/sec |