Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Chrome 70
Mac OS X 10.13.1
Desktop
5 years ago
Test name Executions per second
Object.assign 3763286.8 Ops/sec
Object spread 2221993.2 Ops/sec
Object Indexed Add 478034272.0 Ops/sec
Object Dot Add 783030080.0 Ops/sec
Array.prototype.concat 6244381.0 Ops/sec
Array.prototype.push (grouped) 30985782.0 Ops/sec
Array.prototype.push (single) 37246968.0 Ops/sec
Array Spread 31972842.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


;