Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4412.3 Safari/537.36
Chrome 90
Linux
Desktop
3 years ago
Test name Executions per second
reduce + concat 34.0 Ops/sec
flat 38.8 Ops/sec
Manual copy by index #1 38.2 Ops/sec
Manual copy by index #2 1313.7 Ops/sec
Manual copy with push 447.3 Ops/sec
reduce + spread 13.5 Ops/sec
Script Preparation code:
Tests:
  • reduce + concat

  • flat

  • Manual copy by index #1

  • Manual copy by index #2

  • Manual copy with push

  • reduce + spread