Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
Chrome 70
Windows
Desktop
5 years ago
Test name Executions per second
Object.assign 3114307.2 Ops/sec
Object spread 1507279.5 Ops/sec
Array.prototype.concat 4895928.5 Ops/sec
Array.prototype.push (grouped) 25761476.0 Ops/sec
Array.prototype.push (single) 28622944.0 Ops/sec
Array Spread 21541492.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


;