Test case name | Result |
---|---|
Object.assign | |
Object spread | |
Object Indexed Add | |
Object Dot Add | |
Array.prototype.concat | |
Array.prototype.push (grouped) | |
Array.prototype.push (single) | |
Array Spread |
Test name | Executions per second |
---|---|
Object.assign | 5172089.0 Ops/sec |
Object spread | 14043080.0 Ops/sec |
Object Indexed Add | 931925800.0 Ops/sec |
Object Dot Add | 916661000.0 Ops/sec |
Array.prototype.concat | 3414842.0 Ops/sec |
Array.prototype.push (grouped) | 49943960.0 Ops/sec |
Array.prototype.push (single) | 50199010.0 Ops/sec |
Array Spread | 38363780.0 Ops/sec |