JMH 1.10
Aleksey Shipilev
aleksey.shipilev at oracle.com
Fri Jun 12 23:37:16 UTC 2015
Hi,
It has been a while since the last release. Rejoice! Double-digit
release is coming. JMH 1.10 is released and available at Maven Central
(props to Evgeny Mandrikov, as usual). This is a feature release, and it
contains the following changes (in order of importance/visibility):
* Profilers are now accepting the options. Try, for example, -prof
stack:help. The treatment of the option line is profiler-specific, but
bundled JMH profilers accept "-prof <name>:key1=val1,val2;key2=val3". So
far only stack, (x)perfasm and perfnorm are accepting the options, but
we fully expect more profilers to follow suit.
There are also the relevant changes in the API, to accept the option
line. Because of the new option line, the profiler interface had changed
(again), so pluggable profilers would need adjustment, see Profiler
javadoc.
Tracking:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901387
https://bugs.openjdk.java.net/browse/CODETOOLS-7901448
* Command line options checking was overhauled to range-check the
options. It saves you from weird things like "-5 warmup iterations",
that wrecks the internals. Contributed by Vladimir Sitnikov, thanks!
Tracking:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901431
* CSV writer was saving "samples" as floating-point number, while the
value is always integral:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901443
* Diagnostic message for duplicate @Benchmark was misleading. We now
print the exact duplicate we are colliding with:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901444
* (x)perfasm profilers were not treating negative error codes as
errors, fixed:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901434
* ThreadFactory that was naming the threads did instantiate the
defaultThreadFactory every time (duh), messing up thread names:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901430
* We are now using ProcessBuilders instead of raw Runtime.exec, which
hopefully improves reliability, and escapes corner cases with command
line and argument handling:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901435
Enjoy!
Thanks,
-Aleksey
More information about the jmh-dev
mailing list