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