Skip to content

Commit 8cfbd5f

Browse files
committed
test: stabilize generated registry perf gate sampling
1 parent 29e43d0 commit 8cfbd5f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

MCServerLauncher.ProtocolTests/GeneratedRegistryPerformanceGateTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ public class GeneratedRegistryPerformanceGateTests
2020
private static readonly Guid PingRequestId = Guid.Parse("77777777-7777-7777-7777-777777777777");
2121
private static readonly Guid GetSystemInfoRequestId = Guid.Parse("88888888-8888-8888-8888-888888888888");
2222

23-
private const int WarmupSamples = 4;
24-
private const int MeasuredSamples = 9;
23+
private const int WarmupSamples = 8;
24+
private const int MeasuredSamples = 15;
2525
private const double StartupTimeRatioThreshold = 0.80;
2626
private const double StartupAllocationRatioThreshold = 0.25;
27-
// CI-measured ratio 1.302 after STJ enum converter addition. 1.35 gives margin for runner variance
27+
// Ping is a very short sync path, so CI jitter shows up more easily here. Keep the threshold unchanged
28+
// first, but use a larger median window to make the gate more stable across runners.
2829
private const double DispatchTimeRatioThreshold = 1.35;
2930
private const double DispatchAllocationOverheadThreshold = 32;
3031

0 commit comments

Comments
 (0)