Skip to content

PgBenchmarkBatchSize

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Selects how benchmark iterations are grouped into batches.

public readonly struct PgBenchmarkBatchSize : IEquatable<PgBenchmarkBatchSize>

Implements: IEquatable<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.

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.

Gets a hash for the exact strategy and configured value.

public override int GetHashCode()

Returns: int

The value hash.

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.

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.

Gets a strategy that groups the measured iterations into about one thousand batches.

public static PgBenchmarkBatchSize LargeInput { get; }

Value: PgBenchmarkBatchSize

Gets a strategy that prepares one input for every measured iteration.

public static PgBenchmarkBatchSize PerIteration { get; }

Value: PgBenchmarkBatchSize

Gets a strategy that groups the measured iterations into about ten batches.

public static PgBenchmarkBatchSize SmallInput { get; }

Value: PgBenchmarkBatchSize

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