Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0
Opera 94
Windows
Desktop
one year ago
Test name Executions per second
reduce 40828.7 Ops/sec
flatMap 6174.0 Ops/sec
flat 6111.7 Ops/sec
reduce push 206764.3 Ops/sec
forEach push 164971.8 Ops/sec
concat spread 486376.4 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread