Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Windows 7
Desktop
one year ago
Test name Executions per second
reduce 28154.9 Ops/sec
flatMap 3723.3 Ops/sec
flat 3742.5 Ops/sec
reduce push 116512.5 Ops/sec
forEach push 106883.9 Ops/sec
concat spread 307555.9 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread