Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
reduce 9563.2 Ops/sec
flatMap 4138.4 Ops/sec
flat 4215.4 Ops/sec
reduce push 16440.5 Ops/sec
forEach push 16253.9 Ops/sec
concat spread 149098.1 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread