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