AuxCounters

Henri Tremblay henri.tremblay at gmail.com
Mon Mar 6 16:17:02 UTC 2017


Hi,

I want to do something basic but haven't found a way.

I played with auxiliary counters but after reading the doc, I've definitely
failed to understand it it seems.

I want to do this:

@Benchmark
@Threads(Threads.MAX)
public String cacheAccess() {

   return cache.get(key);

}

And have the time when the method returns null and when if returns
something else.

Is there a way?

Thanks,

Henri


More information about the jmh-dev mailing list