Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Chrome 85
Windows
Desktop
4 years ago
Test name Executions per second
concat 354576.9 Ops/sec
spread 47708.6 Ops/sec
reduce spread 45260.7 Ops/sec
reduce concat 338760.9 Ops/sec
flat 40375.2 Ops/sec
concat apply 939680.7 Ops/sec
Flatten self-made 37447.1 Ops/sec
Script Preparation code:
Tests:
  • concat

  • spread

  • reduce spread

  • reduce concat

  • flat

  • concat apply

  • Flatten self-made


;