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