Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi 5A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android 8.1.0
Mobile
one year ago
Test name Executions per second
reduce 1140.2 Ops/sec
flatMap 354.0 Ops/sec
flat 389.9 Ops/sec
reduce push 7394.2 Ops/sec
forEach push 2209.0 Ops/sec
concat spread 11965.8 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • flatMap

  • flat

  • reduce push

  • forEach push

  • concat spread