Array concat vs spread operator vs push timings

Compare the new ES6 spread operator with the traditional concat() method and push
one year ago
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 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
Tests:
  • Array.prototype.concat

  • spread operator

  • Push

Open this result on MeasureThat.net