diff --git a/Benchmarks/Benchmarks/NIOPosixBenchmarks/Benchmarks.swift b/Benchmarks/Benchmarks/NIOPosixBenchmarks/Benchmarks.swift index 56bb64dd6..521ce7df0 100644 --- a/Benchmarks/Benchmarks/NIOPosixBenchmarks/Benchmarks.swift +++ b/Benchmarks/Benchmarks/NIOPosixBenchmarks/Benchmarks.swift @@ -39,26 +39,28 @@ let benchmarks = { // This benchmark is only available above 5.9 since our EL conformance // to serial executor is also gated behind 5.9. #if compiler(>=5.9) - Benchmark( - "TCPEchoAsyncChannel", - configuration: .init( - metrics: defaultMetrics, - timeUnits: .milliseconds, - scalingFactor: .mega, - setup: { - swiftTaskEnqueueGlobalHook = { job, _ in - eventLoop.executor.enqueue(job) - } - }, - teardown: { - swiftTaskEnqueueGlobalHook = nil - } - ) - ) { benchmark in - try await runTCPEchoAsyncChannel( - numberOfWrites: benchmark.scaledIterations.upperBound, - eventLoop: eventLoop - ) - } +// In addition this benchmark currently doesn't produce deterministic results on our CI +// and therefore is currently disabled +// Benchmark( +// "TCPEchoAsyncChannel", +// configuration: .init( +// metrics: defaultMetrics, +// timeUnits: .milliseconds, +// scalingFactor: .mega, +// setup: { +// swiftTaskEnqueueGlobalHook = { job, _ in +// eventLoop.executor.enqueue(job) +// } +// }, +// teardown: { +// swiftTaskEnqueueGlobalHook = nil +// } +// ) +// ) { benchmark in +// try await runTCPEchoAsyncChannel( +// numberOfWrites: benchmark.scaledIterations.upperBound, +// eventLoop: eventLoop +// ) +// } #endif } diff --git a/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEcho.p90.json b/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEcho.p90.json index fa70aea89..c6a93680d 100644 --- a/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEcho.p90.json +++ b/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEcho.p90.json @@ -1,3 +1,3 @@ { - "mallocCountTotal" : 90 -} \ No newline at end of file + "mallocCountTotal" : 108 +} diff --git a/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json b/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json deleted file mode 100644 index 74498fb02..000000000 --- a/Benchmarks/Thresholds/5.10/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "mallocCountTotal" : 164419 -} diff --git a/Benchmarks/Thresholds/5.7/NIOPosixBenchmarks.TCPEcho.p90.json b/Benchmarks/Thresholds/5.7/NIOPosixBenchmarks.TCPEcho.p90.json index 1859f424c..248bd9606 100644 --- a/Benchmarks/Thresholds/5.7/NIOPosixBenchmarks.TCPEcho.p90.json +++ b/Benchmarks/Thresholds/5.7/NIOPosixBenchmarks.TCPEcho.p90.json @@ -1,3 +1,3 @@ { - "mallocCountTotal" : 92 -} \ No newline at end of file + "mallocCountTotal" : 110 +} diff --git a/Benchmarks/Thresholds/5.8/NIOPosixBenchmarks.TCPEcho.p90.json b/Benchmarks/Thresholds/5.8/NIOPosixBenchmarks.TCPEcho.p90.json index 1859f424c..248bd9606 100644 --- a/Benchmarks/Thresholds/5.8/NIOPosixBenchmarks.TCPEcho.p90.json +++ b/Benchmarks/Thresholds/5.8/NIOPosixBenchmarks.TCPEcho.p90.json @@ -1,3 +1,3 @@ { - "mallocCountTotal" : 92 -} \ No newline at end of file + "mallocCountTotal" : 110 +} diff --git a/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEcho.p90.json b/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEcho.p90.json index 1859f424c..248bd9606 100644 --- a/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEcho.p90.json +++ b/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEcho.p90.json @@ -1,3 +1,3 @@ { - "mallocCountTotal" : 92 -} \ No newline at end of file + "mallocCountTotal" : 110 +} diff --git a/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json b/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json deleted file mode 100644 index c38c7cbbf..000000000 --- a/Benchmarks/Thresholds/5.9/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "mallocCountTotal" : 164426 -} \ No newline at end of file diff --git a/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEcho.p90.json b/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEcho.p90.json index fa70aea89..c6a93680d 100644 --- a/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEcho.p90.json +++ b/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEcho.p90.json @@ -1,3 +1,3 @@ { - "mallocCountTotal" : 90 -} \ No newline at end of file + "mallocCountTotal" : 108 +} diff --git a/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json b/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json deleted file mode 100644 index 617e73531..000000000 --- a/Benchmarks/Thresholds/main/NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "mallocCountTotal" : 164419 -} \ No newline at end of file diff --git a/docker/docker-compose.2204.510.yaml b/docker/docker-compose.2204.510.yaml index a9089f498..757084acc 100644 --- a/docker/docker-compose.2204.510.yaml +++ b/docker/docker-compose.2204.510.yaml @@ -20,6 +20,7 @@ services: test: image: swift-nio:22.04-5.10 environment: + - SWIFT_VERSION=5.10 - MAX_ALLOCS_ALLOWED_10000000_asyncsequenceproducer=21 - MAX_ALLOCS_ALLOWED_1000000_asyncwriter=1000050 - MAX_ALLOCS_ALLOWED_1000_addHandlers=45050 diff --git a/docker/docker-compose.2204.57.yaml b/docker/docker-compose.2204.57.yaml index d6d16f9c3..415223ba5 100644 --- a/docker/docker-compose.2204.57.yaml +++ b/docker/docker-compose.2204.57.yaml @@ -21,6 +21,7 @@ services: test: image: swift-nio:22.04-5.7 environment: + - SWIFT_VERSION=5.7 - MAX_ALLOCS_ALLOWED_10000000_asyncsequenceproducer=22 - MAX_ALLOCS_ALLOWED_1000000_asyncwriter=1000050 - MAX_ALLOCS_ALLOWED_1000_addHandlers=45050 diff --git a/docker/docker-compose.2204.58.yaml b/docker/docker-compose.2204.58.yaml index 827f76771..af365fa86 100644 --- a/docker/docker-compose.2204.58.yaml +++ b/docker/docker-compose.2204.58.yaml @@ -21,6 +21,7 @@ services: test: image: swift-nio:22.04-5.8 environment: + - SWIFT_VERSION=5.8 - MAX_ALLOCS_ALLOWED_10000000_asyncsequenceproducer=22 - MAX_ALLOCS_ALLOWED_1000000_asyncwriter=1000050 - MAX_ALLOCS_ALLOWED_1000_addHandlers=45050 diff --git a/docker/docker-compose.2204.59.yaml b/docker/docker-compose.2204.59.yaml index c348433d9..47a13adc1 100644 --- a/docker/docker-compose.2204.59.yaml +++ b/docker/docker-compose.2204.59.yaml @@ -21,6 +21,7 @@ services: test: image: swift-nio:22.04-5.9 environment: + - SWIFT_VERSION=5.9 - MAX_ALLOCS_ALLOWED_10000000_asyncsequenceproducer=21 - MAX_ALLOCS_ALLOWED_1000000_asyncwriter=1000050 - MAX_ALLOCS_ALLOWED_1000_addHandlers=45050 diff --git a/docker/docker-compose.2204.main.yaml b/docker/docker-compose.2204.main.yaml index 5d08b84b1..6198161e6 100644 --- a/docker/docker-compose.2204.main.yaml +++ b/docker/docker-compose.2204.main.yaml @@ -20,6 +20,7 @@ services: test: image: swift-nio:22.04-main environment: + - SWIFT_VERSION=main - MAX_ALLOCS_ALLOWED_10000000_asyncsequenceproducer=21 - MAX_ALLOCS_ALLOWED_1000000_asyncwriter=1000050 - MAX_ALLOCS_ALLOWED_1000_addHandlers=45050