Run details:
Mozilla/5.0 (Linux; Android 10; MI 8 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36
Chrome Mobile 100
Android
Mobile
2 years ago
Test name Executions per second
flatMap 1110.9 Ops/sec
reduce 184.8 Ops/sec
while 4128.0 Ops/sec
foreach 42132.9 Ops/sec
for 4103.1 Ops/sec
for of 47069.8 Ops/sec
Script Preparation code:
Tests:
  • flatMap

  • reduce

  • while

  • foreach

  • for

  • for of