RFR: 8288667: Reduce runtime of java.text microbenchmarks
David Schlosnagle
duke at openjdk.org
Sun Jun 19 00:30:59 UTC 2022
On Fri, 17 Jun 2022 12:59:17 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> - Refactor micro using a range of parameters to a simpler benchmark that tests different values in one pass
> - Reduce iterations and their runtimes, but add forks (important to be able to detect run-to-run variation anomalies)
>
> Just one micro modified in this package, but reduces total runtime from 16 minutes to ~1 minute
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?
-------------
PR: https://git.openjdk.org/jdk/pull/9198
More information about the core-libs-dev
mailing list