Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Windows 7
Desktop
3 years ago
Test name Executions per second
reduce + concat 12.2 Ops/sec
flat 406.8 Ops/sec
Manual copy by index #1 377.1 Ops/sec
Manual copy by index #2 527.3 Ops/sec
Manual copy with push 466.1 Ops/sec
reduce + spread 4.3 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