Test name | Executions per second |
---|---|
reduce with forEach | 7425.3 Ops/sec |
flatMap | 301.5 Ops/sec |
reduce with forEach (directly) | 1227.6 Ops/sec |
flat | 299.3 Ops/sec |
reduce with apply | 574.3 Ops/sec |
for with foreach | 636.1 Ops/sec |
for with apply | 332.7 Ops/sec |
nested for | 739.0 Ops/sec |
reduce with while | 11596.9 Ops/sec |
while with foreach | 1060.4 Ops/sec |
while with apply | 431.0 Ops/sec |
while with for | 1378.1 Ops/sec |
nested while | 1443.2 Ops/sec |
nested reduce | 7446.2 Ops/sec |