mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
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:
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(
|
||||
|
||||
Reference in new issue
Block a user