Multi-package benchmarks: package names 'merged' in the result table
Dmitry Vyazelenko
vyazelenko at yahoo.com
Mon Aug 11 22:51:34 UTC 2014
Ok, good to know. ;-)
P.S. Replying to the list! :)
Best regards,
Dmitry
On Aug 12, 2014, at 00:41 , Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
> Any reason you are not replying to the list? :)
> Yes, we shorten the common prefix, not exactly the package names.
>
> -Aleksey.
>
> On 08/12/2014 02:38 AM, Dmitry Vyazelenko wrote:
>> Hi Aleksey,
>>
>> Thanks for the fix.
>>
>> I just tried it and got the following output:
>> Benchmark Mode Samples Score Score error Units
>> com.some.even.longer.word.SomeEvenMoreWeirdBenchmark.baseline thrpt 1 3439169459.497 NaN ops/s
>> my.sample.pkg.MySampleBenchmark.baseline thrpt 1 3426429841.206 NaN ops/s
>> test.jmh.TestJmhBenchmark.baseline thrpt 1 3419601440.268 NaN ops/s
>>
>> So it seems that in case of multiple packages no shortening will be done, right? (that’s fine with me)
>>
>> Best regards,
>> Dmitry
>> On Aug 12, 2014, at 00:25 , Aleksey Shipilev <aleksey.shipilev at oracle.com> wrote:
>>
>>> Hi Dmitry,
>>>
>>> On 08/12/2014 02:07 AM, Dmitry Vyazelenko wrote:
>>>> When using JMH with benchmarks located in multiple/different benchmarks
>>>> the results are incorrectly merged together.
>>>>
>>>> So instead of using package name from every benchmark class it seems that
>>>> "test.jmh.TestJmhBenchmark" is used as prefix for all benchmarks which is wrong!
>>>
>>> Thanks for the bug report! Indeed, this is a bug in class name
>>> shortener. Should be working properly with:
>>> http://hg.openjdk.java.net/code-tools/jmh/rev/22d06efe91cb
>>>
>>> -Aleksey.
>>>
>>>
>>
>
>
More information about the jmh-dev
mailing list