30.347. Class UploadBenchClient
Namespace: ArmoniK.Core.Tests.UploadBench
Assembly: ArmoniK.Core.Tests.UploadBench.dll
Client to perform the upload benchmark
public class UploadBenchClient : IAsyncDisposable
30.347.1. Inheritance
30.347.2. Implements
30.347.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
30.347.4. Constructors
30.347.4.1. UploadBenchClient(GrpcClient, UploadBench, ILoggerFactory)
Construct the benchmark client
public UploadBenchClient(GrpcClient clientOptions, UploadBench options, ILoggerFactory loggerFactory)
30.347.4.1.1. Parameters
clientOptions GrpcClient
Options for the gRPC client
options UploadBench
Options for the benchmark
loggerFactory ILoggerFactory
Logger factory
30.347.5. Methods
30.347.5.1. Cancel()
Cancel the benchmark runners
public void Cancel()
30.347.5.2. CreateSessionAsync()
Create a new session in which the benchmark will run
public Task CreateSessionAsync()
30.347.5.2.1. Returns
30.347.5.3. DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
30.347.5.3.1. Returns
A task that represents the asynchronous dispose operation.
30.347.5.4. PrintMeasurements()
Print the measurements that were collected during the run
public void PrintMeasurements()
30.347.5.5. RunAll()
Run the benchmark on multiple threads
public Task RunAll()