Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Chrome 92
Linux
Desktop
3 years ago
Test name Executions per second
Array.prototype.concat 3516330.0 Ops/sec
spread operator 5356973.0 Ops/sec
copy on push 1417783.4 Ops/sec
directly push 3190372.0 Ops/sec
flat 1.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.concat

  • spread operator

  • copy on push

  • directly push

  • flat