Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.concat params: 1000, other 2 33579.8 Ops/sec
spread operator params: 1000, other 2 30481.3 Ops/sec
Push params: 1000, other 2 11255.7 Ops/sec
Array.prototype.concat params: 1000, other 1000 14759.4 Ops/sec
spread operator params: 1000, other 1000 15026.8 Ops/sec
Push params: 1000, other 1000 6652.9 Ops/sec
Array.prototype.concat params: 2, other 2 10025347.0 Ops/sec
spread operator params: 2, other 2 7717912.0 Ops/sec
Push params: 2, other 2 3784788.5 Ops/sec
Array.prototype.concat params: 2, other 1000 7383.0 Ops/sec
spread operator params: 2, other 1000 25184.5 Ops/sec
Push params: 2, other 1000 14260.2 Ops/sec
Tests:
  • Array.prototype.concat params: 1000, other 2

  • spread operator params: 1000, other 2

  • Push params: 1000, other 2

  • Array.prototype.concat params: 1000, other 1000

  • spread operator params: 1000, other 1000

  • Push params: 1000, other 1000

  • Array.prototype.concat params: 2, other 2

  • spread operator params: 2, other 2

  • Push params: 2, other 2

  • Array.prototype.concat params: 2, other 1000

  • spread operator params: 2, other 1000

  • Push params: 2, other 1000