Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Linux
Desktop
7 months ago
Test name Executions per second
reduce 1544.5 Ops/sec
flatMap 40522.2 Ops/sec
flat 43117.9 Ops/sec
reduce push 59881.5 Ops/sec
forEach push 58864.9 Ops/sec
concat spread 65250.6 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread