NextLongGenerationPerformance_jmhType_B1
public class NextLongGenerationPerformance extends AbstractBenchmark
UniformRandomProvider.nextLong()
and
UniformRandomProvider.nextLong(long)
.Modifier and Type | Class | Description |
---|---|---|
static class |
NextLongGenerationPerformance.Sources |
The benchmark state (retrieve the various "RandomSource"s).
|
Constructor | Description |
---|---|
NextLongGenerationPerformance() |
Modifier and Type | Method | Description |
---|---|---|
long |
baselineLong() |
Baseline for a JMH method call returning a
long . |
void |
baselineVoid() |
Baseline for a JMH method call with no return value.
|
long |
nextLong(NextLongGenerationPerformance.Sources sources) |
Exercise the
UniformRandomProvider.nextLong() method. |
long |
nextLongN(NextLongGenerationPerformance.Sources sources) |
Exercise the
UniformRandomProvider.nextLong(long) method. |
public void baselineVoid()
public long baselineLong()
long
.public long nextLong(NextLongGenerationPerformance.Sources sources)
UniformRandomProvider.nextLong()
method.sources
- Source of randomness.public long nextLongN(NextLongGenerationPerformance.Sources sources)
UniformRandomProvider.nextLong(long)
method.sources
- Source of randomness.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.