Add some slack to the TCPEcho benchmark (#3451)

Motivation:

TCPEcho has some run-to-run variation which makes CI flaky.

Modifications:

- Add a little slack to TCPEcho; it has a low total alloc count so some
slack is fine as it's less than a per iteration allocation

Result:

CI less flaky
This commit is contained in:
George Barnett authored and GitHub committed 2025-11-20 15:25:04 +00:00
1 parent 206dacff8e
commit 888c16a7d3
1 file changed
+2 -1
@@ -31,7 +31,8 @@ let benchmarks = {
metrics: defaultMetrics,
scalingFactor: .mega,
maxDuration: .seconds(10_000_000),
maxIterations: 5
maxIterations: 5,
thresholds: [.mallocCountTotal: .init(absolute: [.p90: 50])]
)
) { benchmark in
try runTCPEcho(