Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Object.assign 5172089.0 Ops/sec
Object spread 14043076.0 Ops/sec
Object Indexed Add 931925824.0 Ops/sec
Object Dot Add 916660992.0 Ops/sec
Array.prototype.concat 3414842.0 Ops/sec
Array.prototype.push (grouped) 49943964.0 Ops/sec
Array.prototype.push (single) 50199008.0 Ops/sec
Array Spread 38363776.0 Ops/sec
Tests:
  • Object.assign

  • Object spread

  • Object Indexed Add

  • Object Dot Add

  • Array.prototype.concat

  • Array.prototype.push (grouped)

  • Array.prototype.push (single)

  • Array Spread


;