RngNextIntInRangeBenchmark_jmhType_B1
public class RngNextIntInRangeBenchmark
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
RngNextIntInRangeBenchmark.IntData |
The data used for the shuffle benchmark.
|
static class |
RngNextIntInRangeBenchmark.IntRange |
The upper range for the
int generation. |
static class |
RngNextIntInRangeBenchmark.Source |
The source generator.
|
Constructor | Description |
---|---|
RngNextIntInRangeBenchmark() |
Modifier and Type | Method | Description |
---|---|---|
int |
baselineInt() |
Baseline for a JMH method call returning an
int . |
int |
nextIntN(RngNextIntInRangeBenchmark.IntRange range,
RngNextIntInRangeBenchmark.Source source) |
Exercise the
UniformRandomProvider.nextInt() method. |
int |
nextIntNloop65536(RngNextIntInRangeBenchmark.IntRange range,
RngNextIntInRangeBenchmark.Source source) |
Exercise the
UniformRandomProvider.nextInt() method in a loop. |
int |
pseudoShuffle(RngNextIntInRangeBenchmark.IntData data,
RngNextIntInRangeBenchmark.Source source) |
Exercise the
UniformRandomProvider.nextInt(int) method by creating
random indices for shuffling data. |
int[] |
shuffle(RngNextIntInRangeBenchmark.IntData data,
RngNextIntInRangeBenchmark.Source source) |
Exercise the
UniformRandomProvider.nextInt(int) method by shuffling
data. |
public int baselineInt()
int
.public int nextIntN(RngNextIntInRangeBenchmark.IntRange range, RngNextIntInRangeBenchmark.Source source)
UniformRandomProvider.nextInt()
method.range
- the rangesource
- Source of randomness.public int nextIntNloop65536(RngNextIntInRangeBenchmark.IntRange range, RngNextIntInRangeBenchmark.Source source)
UniformRandomProvider.nextInt()
method in a loop.range
- the rangesource
- Source of randomness.public int[] shuffle(RngNextIntInRangeBenchmark.IntData data, RngNextIntInRangeBenchmark.Source source)
UniformRandomProvider.nextInt(int)
method by shuffling
data.data
- the datasource
- Source of randomness.public int pseudoShuffle(RngNextIntInRangeBenchmark.IntData data, RngNextIntInRangeBenchmark.Source source)
UniformRandomProvider.nextInt(int)
method by creating
random indices for shuffling data.data
- the datasource
- Source of randomness.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.