Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 YaBrowser/23.11.0.0 Safari/537.36
Yandex Browser 23
Mac OS X 10.15.7
Desktop
9 months ago
Test name Executions per second
reduce 27619.3 Ops/sec
flatMap 7267.7 Ops/sec
flat 7403.3 Ops/sec
reduce push 120398.8 Ops/sec
forEach push 81199.9 Ops/sec
concat spread 586183.1 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread