23.347. Class UploadBenchClient

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

Client to perform the upload benchmark

public class UploadBenchClient : IAsyncDisposable

23.347.1. Inheritance

objectUploadBenchClient

23.347.2. Implements

IAsyncDisposable

23.347.3. Inherited Members

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

23.347.4. Constructors

23.347.4.1. UploadBenchClient(GrpcClient, UploadBench, ILoggerFactory)

Construct the benchmark client

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

23.347.4.1.1. Parameters

clientOptions GrpcClient

Options for the gRPC client

options UploadBench

Options for the benchmark

loggerFactory ILoggerFactory

Logger factory

23.347.5. Methods

23.347.5.1. Cancel()

Cancel the benchmark runners

public void Cancel()

23.347.5.2. CreateSessionAsync()

Create a new session in which the benchmark will run

public Task CreateSessionAsync()

23.347.5.2.1. Returns

Task

23.347.5.3. DisposeAsync()

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

public ValueTask DisposeAsync()

23.347.5.3.1. Returns

ValueTask

A task that represents the asynchronous dispose operation.

23.347.5.4. PrintMeasurements()

Print the measurements that were collected during the run

public void PrintMeasurements()

23.347.5.5. RunAll()

Run the benchmark on multiple threads

public Task RunAll()

23.347.5.5.1. Returns

Task