PgBenchmark
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Supplies benchmark helpers whose behavior remains stable under Native AOT optimization.
public static class PgBenchmarkInheritance: object
Methods
Section titled “Methods”BlackBox<T>(T)
Section titled “BlackBox<T>(T)”Prevents the compiler from proving that a benchmark input or result is unused.
public static T BlackBox<T>(T value) where T : allows ref structType parameters:
T
The input and result type, including ref structs.
Parameters:
value — T
The value to hide from optimization.
Returns: T
The same value.