On Wed, 21 Aug 2024 21:46:15 GMT, Chen Liang <li...@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