Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
4 months ago
Test name Executions per second
reduce 10456.8 Ops/sec
flatMap 20880.8 Ops/sec
flat 22013.4 Ops/sec
reduce push 23379.8 Ops/sec
forEach push 24002.6 Ops/sec
concat spread 216783.3 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread