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