PgBenchmarkBatchSize
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Selects how benchmark iterations are grouped into batches.
public readonly struct PgBenchmarkBatchSize : IEquatable<PgBenchmarkBatchSize>Implements: IEquatable<PgBenchmarkBatchSize>
Methods
Section titled “Methods”Equals(PgBenchmarkBatchSize)
Section titled “Equals(PgBenchmarkBatchSize)”Compares the exact strategy and configured value.
public bool Equals(PgBenchmarkBatchSize other)Parameters:
other — PgBenchmarkBatchSize
The other strategy.
Returns: bool
Whether both values describe the same batching strategy.
Equals(object?)
Section titled “Equals(object?)”Compares an object with this strategy.
public override bool Equals(object? obj)Parameters:
obj — object
The other value.
Returns: bool
Whether the object is an equal batch strategy.
GetHashCode()
Section titled “GetHashCode()”Gets a hash for the exact strategy and configured value.
public override int GetHashCode()Returns: int
The value hash.
NumBatches(long)
Section titled “NumBatches(long)”Creates a strategy that divides the measured iterations among a fixed number of batches.
public static PgBenchmarkBatchSize NumBatches(long count)Parameters:
count — long
The positive number of batches.
Returns: PgBenchmarkBatchSize
The requested batch strategy.
NumIterations(long)
Section titled “NumIterations(long)”Creates a strategy with a fixed number of iterations per batch.
public static PgBenchmarkBatchSize NumIterations(long count)Parameters:
count — long
The positive number of iterations.
Returns: PgBenchmarkBatchSize
The requested batch strategy.
Properties
Section titled “Properties”LargeInput
Section titled “LargeInput”Gets a strategy that groups the measured iterations into about one thousand batches.
public static PgBenchmarkBatchSize LargeInput { get; }Value: PgBenchmarkBatchSize
PerIteration
Section titled “PerIteration”Gets a strategy that prepares one input for every measured iteration.
public static PgBenchmarkBatchSize PerIteration { get; }Value: PgBenchmarkBatchSize
SmallInput
Section titled “SmallInput”Gets a strategy that groups the measured iterations into about ten batches.
public static PgBenchmarkBatchSize SmallInput { get; }Value: PgBenchmarkBatchSize
Operators
Section titled “Operators”operator ==(PgBenchmarkBatchSize, PgBenchmarkBatchSize)
Section titled “operator ==(PgBenchmarkBatchSize, PgBenchmarkBatchSize)”Compares two batch strategies.
public static bool operator ==(PgBenchmarkBatchSize left, PgBenchmarkBatchSize right)Parameters:
left — PgBenchmarkBatchSize
right — PgBenchmarkBatchSize
Returns: bool
operator !=(PgBenchmarkBatchSize, PgBenchmarkBatchSize)
Section titled “operator !=(PgBenchmarkBatchSize, PgBenchmarkBatchSize)”Compares two batch strategies for inequality.
public static bool operator !=(PgBenchmarkBatchSize left, PgBenchmarkBatchSize right)Parameters:
left — PgBenchmarkBatchSize
right — PgBenchmarkBatchSize
Returns: bool