BlackHole.consumeCPU
Aleksey Shipilev
aleksey.shipilev at oracle.com
Tue Dec 3 10:45:49 PST 2013
On 12/03/2013 10:26 PM, Ruslan Cheremin wrote:
> Clearly, first call _will_ do the write. It is not a big deal, usually
> covered by warmup, but could shift short benchmarks a little. Doesn't 43 a
> better choice for initial value? :)
Yeah, that's a good idea. The better idea is to seed it with the current
time, so that the unlucky behaviors show up in randomized tests. Pushed
the relevant change;
http://hg.openjdk.java.net/code-tools/jmh/rev/1098723eff36
-Aleksey.
More information about the jmh-dev
mailing list