Skip to content

PgBenchmark

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Supplies benchmark helpers whose behavior remains stable under Native AOT optimization.

public static class PgBenchmark

Inheritance: object

Prevents the compiler from proving that a benchmark input or result is unused.

public static T BlackBox<T>(T value) where T : allows ref struct

Type parameters:

T

The input and result type, including ref structs.

Parameters:

value — T

The value to hide from optimization.

Returns: T

The same value.