You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
The original stream solution looped through the names twice (once when mapping them and once when printing them).
57
68
This solution only goes through them once (since `forEach` is the only https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html#StreamOps[terminal stream operation], whereas in the original solution there was also `collect`.)
This name generation occurs within a function annotated with https://javadoc.io/doc/org.openjdk.jmh/jmh-core/latest/org/openjdk/jmh/annotations/Setup.html:[`@Setup(Leve.Trial)`].
175
198
This means, that the array is generated before each trial and this generation will _not_ be included in the measurement itself.
@@ -303,6 +326,7 @@ ____
303
326
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
304
327
____
305
328
329
+
306
330
This microbenchmark suite can not (and does not try to) measure readability, in part because this is subjective.
307
331
However, here are my thoughts on the three implementations.
0 commit comments