Class BenchmarkUtil

public static class BenchmarkUtil : object

Utility methods to run microbenchmarks.

Inheritance

Object > BenchmarkUtil

Namespace

Grpc.Core.Utils

Assembly

Grpc.Core.dll

Methods

RunBenchmark(Int32, Int32, Action)

public static void RunBenchmark(int warmupIterations, int benchmarkIterations, Action action)

Runs a simple benchmark preceded by warmup phase.

Parameters
TypeNameDescription
Int32warmupIterations
Int32benchmarkIterations
Actionaction