Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Ubuntu
Desktop
3 years ago
Test name Executions per second
reduce + concat 10.5 Ops/sec
flat 476.4 Ops/sec
Manual copy by index #1 305.2 Ops/sec
Manual copy by index #2 512.2 Ops/sec
Manual copy with push 481.7 Ops/sec
reduce + spread 4.7 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