Run details:
Mozilla/5.0 (Linux; Android 12; SM-A526U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
flatMap 1414.8 Ops/sec
reduce 258.0 Ops/sec
while 5089.7 Ops/sec
foreach 151645.0 Ops/sec
Script Preparation code:
Tests:
  • flatMap

  • reduce

  • while

  • foreach