Na jo, utolso:
StreamVsForEachCountBenchmark.forArray thrpt 20 394817691.863 ± 7977712.622 ops/s
StreamVsForEachCountBenchmark.foreach thrpt 20 20841775.312 ± 181298.857 ops/s
StreamVsForEachCountBenchmark.foreachArray thrpt 20 401021284.591 ± 8091448.922 ops/s
StreamVsForEachCountBenchmark.foreachListiterator thrpt 20 41635174.255 ± 718408.542 ops/s
StreamVsForEachCountBenchmark.noStream thrpt 20 48749956.074 ± 868837.081 ops/s
StreamVsForEachCountBenchmark.stream thrpt 20 43258748.145 ± 577222.173 ops/s
Nekem az jott le, hogy ha List-be pakolod, akkor vegulis tokmindegy, hogy stream vagy nem stream. Ha int[] -et hasznalsz, akkor 10-20x gyorsabb lesz a kod. Es, meglepo, de az old-style for a leglassubb.