controlling the exact number of times a method is called

Ymo Lists ymolists at gmail.com
Thu Jun 26 04:11:48 UTC 2014


any takers ???


On Tue, Jun 24, 2014 at 4:00 PM, Ymo Lists <ymolists at gmail.com> wrote:

> Hi All.
>
> I am trying to benchmark a hashmap and i need to control how many times
> the method being benchmarked is being called.
> I also need to get the percentile distribution from the result. For that i
> am using @BenchmarkMode(Mode.SampleTime).
> I am also using using measurementBatchSize api but in the results i see
> that the number of samples is different.
>
> 1) How did that happen ?
> 2) How can i make sure i know exactly how many times the method will be
> called
> 3) How can get access to the raw data of when the method was called and
> the actual time it took for each call.
>
> The code and results are in
> https://gist.github.com/ymolists/7b5581d48d4e1d4f1054
>
>
>


More information about the jmh-dev mailing list