Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 SberBrowser/3.1.0.0
Chrome 105
Windows
Desktop
one year ago
Test name Executions per second
flatMap 2236.9 Ops/sec
reduce 725.3 Ops/sec
while 11205.5 Ops/sec
foreach 404697.6 Ops/sec
Script Preparation code:
Tests:
  • flatMap

  • reduce

  • while

  • foreach


;