23.342. Class UploadBenchClient
Namespace: ArmoniK.Core.Tests.UploadBench
Assembly: ArmoniK.Core.Tests.UploadBench.dll
Client to perform the upload benchmark
public class UploadBenchClient : IAsyncDisposable
23.342.1. Inheritance
23.342.2. Implements
23.342.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
23.342.4. Constructors
23.342.4.1. UploadBenchClient(GrpcClient, UploadBench, ILoggerFactory)
Construct the benchmark client
public UploadBenchClient(GrpcClient clientOptions, UploadBench options, ILoggerFactory loggerFactory)
23.342.4.1.1. Parameters
clientOptions GrpcClient
Options for the gRPC client
options UploadBench
Options for the benchmark
loggerFactory ILoggerFactory
Logger factory
23.342.5. Methods
23.342.5.1. Cancel()
Cancel the benchmark runners
public void Cancel()
23.342.5.2. CreateSessionAsync()
Create a new session in which the benchmark will run
public Task CreateSessionAsync()
23.342.5.2.1. Returns
23.342.5.3. DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
23.342.5.3.1. Returns
A task that represents the asynchronous dispose operation.
23.342.5.4. PrintMeasurements()
Print the measurements that were collected during the run
public void PrintMeasurements()
23.342.5.5. RunAll()
Run the benchmark on multiple threads
public Task RunAll()