RFR: 8333265: De-duplicate method references in java.util.stream.FindOps [v3]

Claes Redestad redestad at openjdk.org
Wed Aug 21 22:07:06 UTC 2024


On Wed, 21 Aug 2024 21:46:15 GMT, Chen Liang <liach at openjdk.org> wrote:

>> test/micro/org/openjdk/bench/java/util/stream/ops/ref/FindAny.java line 63:
>> 
>>> 61:     }
>>> 62: 
>>> 63:     public static void main(String... args) {
>> 
>> Is this driver necessary?
>
> @cl4es Just wonder what your use case is for this addition. If this is accidentally committed, please remove it and I am glad with all other changes.

Adding a `main` method in micros like these allow me to easily multi-purpose them as relatively clean, diagnostic startup microbenchmarks. It's something I've started adding to all micros I author. I guess I should do a write-up about it some time.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19477#discussion_r1725802115


More information about the core-libs-dev mailing list