Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 2261526.0 Ops/sec
spread operator 3204891.2 Ops/sec
copy on push 921231.5 Ops/sec
directly push 1951585.0 Ops/sec
flat 1.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • copy on push

  • directly push

  • flat