Perfasm attributes 39% of cycles to JMH infrastructure in my benchmark

Aleksey Shipilev aleksey.shipilev at oracle.com
Thu Apr 16 20:30:07 UTC 2015


On 04/16/2015 05:53 PM, Sergey Kuksenko wrote:
> Right now processing perf events we are skipping events from start
> (estimating delay), but we don't skip them from the end.
> I think we should:
> - (by default): skip before start time of the first iteration and skip
> after end time of the last iteration.
> - (by options): select events only from the single iteration with some
> gaps from start and end (configurable). that allows us to do perfasm
> slice which are free from infrastructure effects.

Yes, and this touches on the relevant idea for internal profilers:
trigger the profiler snapshots before/after we transit to measurement
phase.

Filed at low priority:
 https://bugs.openjdk.java.net/browse/CODETOOLS-7901395

-Aleksey.




More information about the jmh-dev mailing list