Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Notify Smoke Test / Notify Unit Tests (push) Has been cancelled
Notify Smoke Test / Notifier Service Tests (push) Has been cancelled
Notify Smoke Test / Notification Smoke Test (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Scanner Analyzers / Discover Analyzers (push) Has been cancelled
Scanner Analyzers / Build Analyzers (push) Has been cancelled
Scanner Analyzers / Test Language Analyzers (push) Has been cancelled
Scanner Analyzers / Validate Test Fixtures (push) Has been cancelled
Scanner Analyzers / Verify Deterministic Output (push) Has been cancelled
Signals CI & Image / signals-ci (push) Has been cancelled
Signals Reachability Scoring & Events / reachability-smoke (push) Has been cancelled
Signals Reachability Scoring & Events / sign-and-upload (push) Has been cancelled
43 lines
1.8 KiB
C#
43 lines
1.8 KiB
C#
using System.Globalization;
|
|
|
|
namespace StellaOps.Bench.LinkNotMerge;
|
|
|
|
internal sealed record ScenarioResult(
|
|
string Id,
|
|
string Label,
|
|
int Iterations,
|
|
int ObservationCount,
|
|
int AliasGroups,
|
|
int LinksetCount,
|
|
DurationStatistics TotalStatistics,
|
|
DurationStatistics InsertStatistics,
|
|
DurationStatistics CorrelationStatistics,
|
|
ThroughputStatistics TotalThroughputStatistics,
|
|
ThroughputStatistics InsertThroughputStatistics,
|
|
AllocationStatistics AllocationStatistics,
|
|
double? ThresholdMs,
|
|
double? MinThroughputThresholdPerSecond,
|
|
double? MinMongoThroughputThresholdPerSecond,
|
|
double? MaxAllocatedThresholdMb)
|
|
{
|
|
public string IdColumn => Id.Length <= 28 ? Id.PadRight(28) : Id[..28];
|
|
|
|
public string ObservationsColumn => ObservationCount.ToString("N0", CultureInfo.InvariantCulture).PadLeft(12);
|
|
|
|
public string AliasColumn => AliasGroups.ToString("N0", CultureInfo.InvariantCulture).PadLeft(8);
|
|
|
|
public string LinksetColumn => LinksetCount.ToString("N0", CultureInfo.InvariantCulture).PadLeft(9);
|
|
|
|
public string TotalMeanColumn => TotalStatistics.MeanMs.ToString("F2", CultureInfo.InvariantCulture).PadLeft(10);
|
|
|
|
public string CorrelationMeanColumn => CorrelationStatistics.MeanMs.ToString("F2", CultureInfo.InvariantCulture).PadLeft(10);
|
|
|
|
public string InsertMeanColumn => InsertStatistics.MeanMs.ToString("F2", CultureInfo.InvariantCulture).PadLeft(10);
|
|
|
|
public string ThroughputColumn => (TotalThroughputStatistics.MinPerSecond / 1_000d).ToString("F2", CultureInfo.InvariantCulture).PadLeft(11);
|
|
|
|
public string MongoThroughputColumn => (InsertThroughputStatistics.MinPerSecond / 1_000d).ToString("F2", CultureInfo.InvariantCulture).PadLeft(11);
|
|
|
|
public string AllocatedColumn => AllocationStatistics.MaxAllocatedMb.ToString("F2", CultureInfo.InvariantCulture).PadLeft(9);
|
|
}
|