RFR: 8288667: Reduce runtime of java.text microbenchmarks [v2]

Claes Redestad redestad at openjdk.org
Mon Jun 20 09:14:00 UTC 2022


On Sun, 19 Jun 2022 00:27:27 GMT, David Schlosnagle <duke at openjdk.org> wrote:

>> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add OperationsPerInvocation
>
> test/micro/org/openjdk/bench/java/text/DefFormatterBench.java line 65:
> 
>> 63:     @Benchmark
>> 64:     public void testDefNumberFormatter(final Blackhole blackhole) {
>> 65:         for (double value : values) {
> 
> Should this now include `@OperationsPerInvocation(13)` since the loop is performing multiple operations per invocation?

Makes sense since it keeps the timing per operation in the same ballpark.

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

PR: https://git.openjdk.org/jdk/pull/9198


More information about the core-libs-dev mailing list