days
0
-10
-5
hours
0
-1
minutes
-4
-6
seconds
-1
-1
search

#streams

Benchmark test

Follow-up: How fast are the Java 8 Streams?

It’s a Superman vs. Batman battle. If we pit sequential streams against regular for-loops, which one comes out faster? After some careful benchmark tests, Angelika Langer shows us which is fastest, and why must be careful to make judgements.