Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Linux
Desktop
2 years ago
Test name Executions per second
flatMap 12650.5 Ops/sec
reduce 55.2 Ops/sec
while 19040.7 Ops/sec
foreach 145612.7 Ops/sec
Script Preparation code:
Tests:
  • flatMap

  • reduce

  • while

  • foreach