From 2ff86b9e450de88ae80b8230f191d5e024adef54 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 9 Feb 2024 11:58:45 +0000 Subject: tests: Note results of benchmarking of the gzip -1 flag on artifacts Signed-off-by: Ian Jackson --- tests/lib | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/lib b/tests/lib index 883912c..2731f1e 100644 --- a/tests/lib +++ b/tests/lib @@ -507,6 +507,12 @@ t-save-artifacts () { artifacts="$AUTOPKGTEST_ARTIFACTS" if [ x"$artifacts" = x ]; then return; fi if [ x"tmp" = x ]; then return; fi + # Empirically in a non-autopkgtest run with AUTOPKGTEST_ARTIFACTS + # this `-1` flag to gzip decreased the runtime from 585s (2558s CPU) + # to 609s (2730s CPU), a decrease of 5-7%. It increased the + # total size of the artifacts from 24220k to 26092k, ie +8%, + # but in a real autopkgtest run there are many bigger things + # alongside AUTOPKGTEST_ARTIFACTS put there by autopkgtest itself. GZIP=-1v tar -C "$tmp" -zc -f "$artifacts/${0##*/}.tar.gz" \ --exclude=\*.tar . local logfile="$DGIT_TEST_REDIRECTED_LOG" -- cgit v1.2.3