Setup time is counted against iteration time in Mode.SingleShotTime (JMH-1.0)
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu Sep 4 06:16:17 UTC 2014
On 09/02/2014 06:16 PM, vyazelenko at yahoo.com wrote:
> Currently SingleShotTime is the only mode that seems to logically fit
> into description "timeout-agnostic". Up until now I thought that this
> mode should be used for kilo- and mega- benches but it turns out it's
> not the case (at least not in the default configuration). So it seems
> support for such benches is missing or should be made more explicit.
Well, any benchmark mode should be usable for kilo- and mega-
benchmarks. However, just like for time-based benchmarks, you have to
communicate how long you are expecting the benchmark to run.
> How about adding another command line switch -waitForever similar to
> -foe and -gc. At least it would allow altering behavior for all
> benches at once. ;)
-r $LARGE_VALUE also applies to all benchmarks at once.
Recorded:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901022
Thanks,
-Aleksey
More information about the jmh-dev
mailing list