From 8dde328ef5da3b83bc6990f05121130250bfa540 Mon Sep 17 00:00:00 2001 From: David Evans Date: Fri, 26 Mar 2021 19:43:52 +0000 Subject: [PATCH] Fix performance testing (#512) * Add performance test docker compose * Add image setup --- docker/docker-compose.1804.52.yaml | 3 +++ docker/docker-compose.1804.53.yaml | 3 +++ docker/docker-compose.2004.54.yaml | 3 +++ docker/docker-compose.yaml | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/docker/docker-compose.1804.52.yaml b/docker/docker-compose.1804.52.yaml index dac2f6322..225eec0e7 100644 --- a/docker/docker-compose.1804.52.yaml +++ b/docker/docker-compose.1804.52.yaml @@ -14,3 +14,6 @@ services: shell: image: swift-nio-imap:18.04-5.2 + + performance-test: + image: swift-nio-imap:18.04-5.2 diff --git a/docker/docker-compose.1804.53.yaml b/docker/docker-compose.1804.53.yaml index 646ec5136..bfe0be6d4 100644 --- a/docker/docker-compose.1804.53.yaml +++ b/docker/docker-compose.1804.53.yaml @@ -14,3 +14,6 @@ services: shell: image: swift-nio-imap:18.04-5.3 + + performance-test: + image: swift-nio-imap:18.04-5.3 diff --git a/docker/docker-compose.2004.54.yaml b/docker/docker-compose.2004.54.yaml index e304e6921..c6c85cf40 100644 --- a/docker/docker-compose.2004.54.yaml +++ b/docker/docker-compose.2004.54.yaml @@ -14,3 +14,6 @@ services: shell: image: swift-nio-imap:20.04-5.4 + + performance-test: + image: swift-nio-imap:20.04-5.4 diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index ad46eae6a..19fd9e06e 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -29,6 +29,10 @@ services: test: <<: *common command: /bin/bash -xcl "swift test -Xswiftc -warnings-as-errors --enable-test-discovery $${SANITIZER_ARG-}" + + performance-test: + <<: *common + command: /bin/bash -xcl "swift build -c release -Xswiftc -Xllvm -Xswiftc -align-all-functions=5 -Xswiftc -Xllvm -Xswiftc -align-all-blocks=5 && ./.build/release/NIOIMAPPerformanceTester" # util