Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
reduce 34677.3 Ops/sec
flatMap 9153.2 Ops/sec
flat 9168.5 Ops/sec
reduce push 140422.9 Ops/sec
forEach push 90792.8 Ops/sec
concat spread 547493.4 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread