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