From ef9e98a592c3f70a1fa095809c91e8ba8a2df8db Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Fri, 29 Jan 2021 08:32:08 +0000 Subject: [PATCH] align all functions to make micro benchmarks more stable (#1739) Motivation: After chatting to the Swift perf team, they thought it may be a good idea to align all functions in our performance tests which may make the micro benchmarks more stable. Modifications: Align all functions/blocks. Result: Hopefully more stable micro benchmarks. --- docker/docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 55696e6d2..e7ef09996 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -40,7 +40,7 @@ services: performance-test: <<: *common - command: /bin/bash -xcl "swift build -c release && ./.build/release/NIOPerformanceTester" + command: /bin/bash -xcl "swift build -c release -Xswiftc -Xllvm -Xswiftc -align-all-functions=5 -Xswiftc -Xllvm -Xswiftc -align-all-blocks=5 && ./.build/release/NIOPerformanceTester" # util