Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Windows
Desktop
20 days ago
Test name Executions per second
reduce 7459.7 Ops/sec
flatMap 106579.9 Ops/sec
flat 107681.4 Ops/sec
reduce push 229927.5 Ops/sec
forEach push 239033.2 Ops/sec
concat spread 246394.5 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread