Improvement suggestion for Iteration printout.
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu Jun 23 17:14:08 UTC 2016
On 19.06.2016 14:31, Jens Wilke wrote:
> On Saturday 18 June 2016 08:48:56 Zoltan Farkas wrote:
>> Would it be possible to synchronize on the stdout when printing:
>>
>> Iteration 2: 72664.450 ops/s
>>
>> so that in case there is other output enabled, the line will not get interleaved like:
>>
>> Iteration 2:
>>
>> Bla bla bla
>>
>> 72664.450 ops/s
>
> "Iteration 2" gets printed before iteration starts and "ops/s" after the iteration is finished.
> Everything the iteration code prints, is printed in between.
Exactly so. And the reason for that is simple: this provides enough
indication that an iteration is in progress, plus it is invisible in the
run logs after the iteration stops.
I understand that workloads may want to print something out, but this is
a corner case that we should not really handle with more garbage in the
text output.
The way out is to provide the facility to accumulate logs, e.g.:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901039
Thanks,
-Aleksey
More information about the jmh-dev
mailing list