ThreadLocalPerformance_jmhType_B1
public class ThreadLocalPerformance
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ThreadLocalPerformance.LocalSources |
The benchmark state (to retrieve the various "RandomSource"s thread locally).
|
static class |
ThreadLocalPerformance.Sources |
The benchmark state (to retrieve the various "RandomSource"s).
|
Constructor | Description |
---|---|
ThreadLocalPerformance() |
Modifier and Type | Method | Description |
---|---|---|
long |
randomSourceCreate(ThreadLocalPerformance.Sources sources) |
|
long |
threadLocalRandom() |
|
long |
threadLocalRandomSourceCurrent(ThreadLocalPerformance.Sources sources) |
|
long |
threadLocalRandomWrapped() |
|
long |
threadLocalUniformRandomProvider(ThreadLocalPerformance.LocalSources localSources) |
public long threadLocalRandom()
public long threadLocalRandomWrapped()
public long randomSourceCreate(ThreadLocalPerformance.Sources sources)
sources
- Source of randomness.public long threadLocalRandomSourceCurrent(ThreadLocalPerformance.Sources sources)
sources
- Source of randomness.public long threadLocalUniformRandomProvider(ThreadLocalPerformance.LocalSources localSources)
localSources
- Local source of randomness.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.