Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/332.1.669373046 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.6
Mobile
3 months ago
Test name Executions per second
flatMap 37217.1 Ops/sec
reduce 523.6 Ops/sec
while 28723.2 Ops/sec
foreach 54975.6 Ops/sec
Script Preparation code:
Tests:
  • flatMap

  • reduce

  • while

  • foreach