26.347. Class UploadBenchClient

Namespace: ArmoniK.Core.Tests.UploadBench
Assembly: ArmoniK.Core.Tests.UploadBench.dll

Client to perform the upload benchmark

public class UploadBenchClient : IAsyncDisposable

26.347.1. Inheritance

objectUploadBenchClient

26.347.2. Implements

IAsyncDisposable

26.347.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.347.4. Constructors

26.347.4.1. UploadBenchClient(GrpcClient, UploadBench, ILoggerFactory)

Construct the benchmark client

public UploadBenchClient(GrpcClient clientOptions, UploadBench options, ILoggerFactory loggerFactory)

26.347.4.1.1. Parameters

clientOptions GrpcClient

Options for the gRPC client

options UploadBench

Options for the benchmark

loggerFactory ILoggerFactory

Logger factory

26.347.5. Methods

26.347.5.1. Cancel()

Cancel the benchmark runners

public void Cancel()

26.347.5.2. CreateSessionAsync()

Create a new session in which the benchmark will run

public Task CreateSessionAsync()

26.347.5.2.1. Returns

Task

26.347.5.3. DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

26.347.5.3.1. Returns

ValueTask

A task that represents the asynchronous dispose operation.

26.347.5.4. PrintMeasurements()

Print the measurements that were collected during the run

public void PrintMeasurements()

26.347.5.5. RunAll()

Run the benchmark on multiple threads

public Task RunAll()

26.347.5.5.1. Returns

Task