Object.assign vs spread operator vs jQuery.extendFastest: spread operator (3.1x faster)
19,347,084 ops/sec
9,171,998 ops/sec
6,179,222 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 | |
| spread operator | |
| jQuery.extend |
| Test name | Executions per second |
|---|---|
| ✓ Object.assign | 12,940,968 Ops/sec |
| spread operator | 10,954,809 Ops/sec |
| jQuery.extend | 6,573,381 Ops/sec |