Set SWIFT_VERSION environment variable to resolve to the correct benchmarks thresholds path (#2613)

* Set `SWIFT_VERSION` environment variable to resolve to the correct benchmarks thresholds path

* mallocs have increased

* update benchmark results manually

* update thresholds again

* disable flaky benchmark
This commit is contained in:
David Nadoba authored and GitHub committed 2023-12-22 11:07:35 +01:00
1 parent 4c77ef0184
commit 23e995b3af
14 files changed
+38 -40

No files matched your search

@@ -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
}
@@ -1,3 +1,3 @@
{
"mallocCountTotal" : 90
}
"mallocCountTotal" : 108
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal" : 164419
}
@@ -1,3 +1,3 @@
{
"mallocCountTotal" : 92
}
"mallocCountTotal" : 110
}
@@ -1,3 +1,3 @@
{
"mallocCountTotal" : 92
}
"mallocCountTotal" : 110
}
@@ -1,3 +1,3 @@
{
"mallocCountTotal" : 92
}
"mallocCountTotal" : 110
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal" : 164426
}
@@ -1,3 +1,3 @@
{
"mallocCountTotal" : 90
}
"mallocCountTotal" : 108
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal" : 164419
}
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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