public class JLBHOptions extends Object
| Constructor and Description |
|---|
JLBHOptions() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull JLBHOptions |
accountForCoordinatedOmission(boolean accountForCoordinatedOmission)
Determines whether the start time is the time the event was supposed to have happened
(i.e.
|
JLBHOptions |
acquireLock(Supplier<net.openhft.affinity.AffinityLock> acquireLock) |
@NotNull JLBHOptions |
iterations(int iterations)
Number of iterations of the benchmark not including warmup.
|
@NotNull JLBHOptions |
iterations(long iterations) |
@NotNull JLBHOptions |
jitterAffinity(boolean jitterAffinity)
Should the jitter thread set affinity or not
|
@NotNull JLBHOptions |
jlbhTask(JLBHTask JLBHTask)
The latency benchmark to be run.
|
JLBHOptions |
latencyDistributor(LatencyDistributor latencyDistributor)
Allow the distribution to be altered pseudo-randomly
|
@NotNull JLBHOptions |
pauseAfterWarmupMS(int pauseMS)
Option to set a pause after the warmup is complete
|
@NotNull JLBHOptions |
recordJitterGreaterThanNs(int recordJitterGreaterThanNs)
Determines how much jitter to record.
|
@NotNull JLBHOptions |
recordOSJitter(boolean recordOSJitter)
Determines whether or not to record jitter
|
@NotNull JLBHOptions |
runs(int runs)
Number of runs of the benchmark
|
@NotNull JLBHOptions |
skipFirstRun(boolean skip)
Option to skip first run from being included in the variation statistics.
|
@NotNull JLBHOptions |
throughput(int throughput)
Number of iterations per second to be pushed through the benchmark
|
@NotNull JLBHOptions |
throughput(int throughput,
TimeUnit throughputTimeUnit)
Number of iterations per time unit to be pushed through the benchmark
|
JLBHOptions |
timeout(long timeout) |
String |
toString() |
@NotNull JLBHOptions |
warmUpIterations(int warmUp)
Determines how many warmup iterations to perform.
|
@NotNull public @NotNull JLBHOptions throughput(int throughput)
throughput - defaults to 10,000@NotNull public @NotNull JLBHOptions throughput(int throughput, TimeUnit throughputTimeUnit)
throughput - defaults to 10,000throughputTimeUnit - defaults to TimeUnit.SECONDpublic JLBHOptions latencyDistributor(LatencyDistributor latencyDistributor)
latencyDistributor - function to take the average latency and multiply it by a function.@NotNull public @NotNull JLBHOptions accountForCoordinatedOmission(boolean accountForCoordinatedOmission)
accountForCoordinatedOmission - defaults to true@NotNull public @NotNull JLBHOptions recordJitterGreaterThanNs(int recordJitterGreaterThanNs)
recordJitterGreaterThanNs - Defaults to 1000@NotNull public @NotNull JLBHOptions recordOSJitter(boolean recordOSJitter)
recordOSJitter - Defaults to true@NotNull public @NotNull JLBHOptions warmUpIterations(int warmUp)
warmUp - Defaults to 10,000@NotNull public @NotNull JLBHOptions runs(int runs)
runs - Defaults to 3@NotNull public @NotNull JLBHOptions iterations(int iterations)
iterations - Defaults to 100,000@NotNull public @NotNull JLBHOptions iterations(long iterations)
@NotNull public @NotNull JLBHOptions jlbhTask(JLBHTask JLBHTask)
@NotNull public @NotNull JLBHOptions pauseAfterWarmupMS(int pauseMS)
pauseMS - pause in ms default to 0@NotNull public @NotNull JLBHOptions skipFirstRun(boolean skip)
skip - default to true if runs greater than 3@NotNull public @NotNull JLBHOptions jitterAffinity(boolean jitterAffinity)
jitterAffinity - default is falsepublic JLBHOptions acquireLock(Supplier<net.openhft.affinity.AffinityLock> acquireLock)
public JLBHOptions timeout(long timeout)
Copyright © 2023. All rights reserved.