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
10 months ago
Test name Executions per second
reduce 33437.3 Ops/sec
flatMap 7693.3 Ops/sec
flat 7449.0 Ops/sec
reduce push 122945.8 Ops/sec
forEach push 79975.9 Ops/sec
concat spread 577937.0 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread