Array concat vs spread operator vs push timings

Compare the new ES6 spread operator with the traditional concat() method and push
3 months ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36
Test name Executions per second
Array.prototype.concat 168244.2 Ops/sec
spread operator 171977.0 Ops/sec
Push 176082.5 Ops/sec
  • Array.prototype.concat

  • spread operator

  • Push

Open this result on