Skip to content

Commit 5ff41b5

Browse files
authored
Disable Create/drop connectinon benchmark in CI (#213)
1 parent cff1ffb commit 5ff41b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Benchmarks/ValkeyBenchmarks/ValkeyConnectionBenchmark.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import Benchmark
10+
import Foundation
1011
import Logging
1112
import NIOCore
1213
import NIOPosix
@@ -25,6 +26,9 @@ func connectionBenchmarks() {
2526
func makeConnectionCreateAndDropBenchmark() -> Benchmark? {
2627
let serverMutex = Mutex<(any Channel)?>(nil)
2728

29+
// don't run this benchmark in CI it is too erratic
30+
guard ProcessInfo.processInfo.environment["CI"] == nil else { return nil }
31+
2832
return Benchmark("Connection: Create and drop benchmark", configuration: .init(metrics: defaultMetrics, scalingFactor: .kilo)) { benchmark in
2933
let port = serverMutex.withLock { $0 }!.localAddress!.port!
3034
let logger = Logger(label: "test")

0 commit comments

Comments
 (0)