Class BowireBenchmarkSample
- Namespace
- Kuestenlogik.Bowire.Benchmarking
- Assembly
- Kuestenlogik.Bowire.Benchmarking.dll
#623 — one call of a run, where it fell in the run: OffsetMs
is when it completed, counted from the run's start.
public sealed record BowireBenchmarkSample : IEquatable<BowireBenchmarkSample>
- Inheritance
-
BowireBenchmarkSample
- Implements
- Inherited Members
Constructors
BowireBenchmarkSample(double, double, bool, double?)
#623 — one call of a run, where it fell in the run: OffsetMs
is when it completed, counted from the run's start.
public BowireBenchmarkSample(double OffsetMs, double LatencyMs, bool Ok, double? FirstChunkMs = null)
Parameters
OffsetMsdoubleWhen the call completed, milliseconds after the run started.
LatencyMsdoubleHow long it took.
OkboolWhether it succeeded.
FirstChunkMsdouble?#620 — its time to first chunk, for a streamed call that produced one.
Properties
FirstChunkMs
#620 — its time to first chunk, for a streamed call that produced one.
public double? FirstChunkMs { get; init; }
Property Value
LatencyMs
How long it took.
public double LatencyMs { get; init; }
Property Value
OffsetMs
When the call completed, milliseconds after the run started.
public double OffsetMs { get; init; }
Property Value
Ok
Whether it succeeded.
public bool Ok { get; init; }
Property Value
Methods
Deconstruct(out double, out double, out bool, out double?)
public void Deconstruct(out double OffsetMs, out double LatencyMs, out bool Ok, out double? FirstChunkMs)
Parameters
Equals(BowireBenchmarkSample?)
public bool Equals(BowireBenchmarkSample? other)
Parameters
otherBowireBenchmarkSample
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireBenchmarkSample?, BowireBenchmarkSample?)
public static bool operator ==(BowireBenchmarkSample? left, BowireBenchmarkSample? right)
Parameters
leftBowireBenchmarkSamplerightBowireBenchmarkSample
Returns
operator !=(BowireBenchmarkSample?, BowireBenchmarkSample?)
public static bool operator !=(BowireBenchmarkSample? left, BowireBenchmarkSample? right)
Parameters
leftBowireBenchmarkSamplerightBowireBenchmarkSample