BaselineGenerationPerformance_jmhType_B1
public class BaselineGenerationPerformance
extends java.lang.Object
UniformRandomProvider
.
These ordinarily do not need to be run. The benchmarks can be used to determine if the baseline scales linearly with workload. If not then the JVM has removed the baseline from the testing loop given that its result is predictable. The ideal baseline will:
The results of this benchmark should be plotted for each method using [numValues] vs [run time] to check linearity.
Constructor | Description |
---|---|
BaselineGenerationPerformance() |
Modifier and Type | Method | Description |
---|---|---|
void |
nextBoolean(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextBoolean() method. |
void |
nextBytes(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextBytes(byte[]) method. |
void |
nextDouble(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextDouble() method. |
void |
nextFloat(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextFloat() method. |
void |
nextInt(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextInt() method. |
void |
nextIntN(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextInt(int) method. |
void |
nextLong(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextLong() method. |
void |
nextLongN(org.openjdk.jmh.infra.Blackhole bh) |
Exercise the
UniformRandomProvider.nextLong(long) method. |
public void nextBytes(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextBytes(byte[])
method.
Note: Currently there is not a test for
UniformRandomProvider.nextBytes(byte[], int, int)
since the two methods are
implemented by the base Int/LongProvider class using the same code.
bh
- Data sink.public void nextInt(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextInt()
method.bh
- Data sink.public void nextIntN(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextInt(int)
method.bh
- Data sink.public void nextLong(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextLong()
method.bh
- Data sink.public void nextLongN(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextLong(long)
method.bh
- Data sink.public void nextBoolean(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextBoolean()
method.bh
- Data sink.public void nextFloat(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextFloat()
method.bh
- Data sink.public void nextDouble(org.openjdk.jmh.infra.Blackhole bh)
UniformRandomProvider.nextDouble()
method.bh
- Data sink.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.