oussamaLaribi

Results 5 comments of oussamaLaribi

I think this rule has to do with Java performance with Collections. As i know, Foreach and Stream API is convenient to work with Collections.

Hello @dedece35, I have made a benchmark to test the example in the description of the rule. Here’s the code and the result. I'm kinda surprised. ![Benchmark](https://user-images.githubusercontent.com/63214114/203572581-1af0c07e-0a3a-4d15-a022-edb4b89ea786.png) ![ElapsedTime](https://user-images.githubusercontent.com/63214114/203572618-ff742b68-7843-43ed-8465-e3b0adaaa87a.png) https://github.com/oussamaLaribi/jmh-benchmark-JAVA-S53-rule

Hi @dedece35, thank you for ideas. I agree with you to benchmark other kind of loops.