Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36
Chrome 104
Linux
Desktop
2 years ago
Test name Executions per second
Array.prototype.concat 1951877.4 Ops/sec
spread operator 3587199.0 Ops/sec
copy on push 3464736.5 Ops/sec
directly push 4035923.8 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • copy on push

  • directly push