From 48d011a39c878654a16128740bb1dbb9c744d9be Mon Sep 17 00:00:00 2001 From: khai96_ Date: Tue, 9 Aug 2022 22:25:54 +0700 Subject: [PATCH 1/5] ci: benchmark: Update competitors --- .github/workflows/deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1e74f75..c0faa05 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -506,7 +506,7 @@ jobs: - name: Install dust env: REPO: https://github.com/bootandy/dust - VERSION: '0.6.0' + VERSION: '0.8.1' run: | mkdir -p DUST.tmp archive_name="dust-v${VERSION}-x86_64-unknown-linux-gnu" @@ -528,7 +528,7 @@ jobs: - name: Install dua env: REPO: https://github.com/Byron/dua-cli - VERSION: '2.12.1' + VERSION: '2.17.8' run: | mkdir -p DUA.tmp archive_name="dua-v${VERSION}-x86_64-unknown-linux-musl" @@ -543,7 +543,7 @@ jobs: - name: Install gdu env: REPO: https://github.com/dundee/gdu - VERSION: '5.0.0' + VERSION: '5.15.0' run: | mkdir -p GDU.tmp curl -L "${REPO}/releases/download/v${VERSION}/gdu_linux_amd64.tgz" > tmp.gdu.tar.gz From d7be9518d81e607b0ec00ec9f21d538af93a9d45 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Tue, 9 Aug 2022 22:47:16 +0700 Subject: [PATCH 2/5] ci: benchmark: Use dutree@0.2.18 --- .github/workflows/deploy.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c0faa05..aca4d0a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -518,12 +518,18 @@ jobs: - name: Install dutree env: REPO: https://github.com/nachoparker/dutree - VERSION: '0.2.15' + VERSION: '0.2.18' run: | mkdir -p DUTREE.tmp - curl -L "${REPO}/releases/download/v${VERSION}/dutree" > DUTREE.tmp/dutree - chmod +x DUTREE.tmp/dutree - echo "$(pwd)/DUTREE.tmp" >> "$GITHUB_PATH" + flags=( + --force + --root DUTREE.tmp + --version "$VERSION" + --profile release + --locked + ) + cargo install "${flags[@]}" dutree + echo "$(pwd)/DUTREE.tmp/bin" >> "$GITHUB_PATH" - name: Install dua env: From e3188126f3b9d9261e5fa5e313cc85534bd4658a Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 10 Aug 2022 09:54:59 +0700 Subject: [PATCH 3/5] ci: benchmark: Remove `ncdu` from `summary` `ncdu` lacks the summary functionality --- ci/github-actions/benchmark/matrix.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/github-actions/benchmark/matrix.ts b/ci/github-actions/benchmark/matrix.ts index 31ae34c..3d82dac 100644 --- a/ci/github-actions/benchmark/matrix.ts +++ b/ci/github-actions/benchmark/matrix.ts @@ -127,7 +127,6 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = competitors: [ ['dutree', '--summary'], ['dua', '--apparent-size'], - ['ncdu', '-o', '/dev/null', '-0'], ['du', '--apparent-size', '--total'], ], }, From 63d467d798f01968f375d174380f1d50e7408cc7 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 10 Aug 2022 10:00:02 +0700 Subject: [PATCH 4/5] ci: benchmark: Remove some `dutree` `dutree` is so hilariously outmatched that it would only be fair to only let it competes in `extreme-details` category --- ci/github-actions/benchmark/matrix.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/ci/github-actions/benchmark/matrix.ts b/ci/github-actions/benchmark/matrix.ts index 3d82dac..e57331e 100644 --- a/ci/github-actions/benchmark/matrix.ts +++ b/ci/github-actions/benchmark/matrix.ts @@ -94,7 +94,6 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = pduCliArgs: ['--quantity=len'], competitors: [ ['dust', '--apparent-size'], - ['dutree'], ['dua', '--apparent-size'], ['ncdu', '-o', '/dev/stdout', '-0'], ['gdu', '--show-apparent-size', '--non-interactive', '--no-progress'], @@ -106,7 +105,6 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = pduCliArgs: ['--quantity=blksize'], competitors: [ ['dust'], - ['dutree', '--usage'], ['dua'], ['ncdu', '-o', '/dev/stdout', '-0'], ['gdu', '--non-interactive', '--no-progress'], @@ -118,7 +116,6 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = pduCliArgs: ['--top-down'], competitors: [ ['dust', '--apparent-size', '--reverse'], - ['dutree'], ], }, { From 5d2a194aa487e2693e8c320d935f31993aff30fe Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 10 Aug 2022 10:00:36 +0700 Subject: [PATCH 5/5] ci: benchmark: Use the right summary flag for `du` --- ci/github-actions/benchmark/matrix.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/github-actions/benchmark/matrix.ts b/ci/github-actions/benchmark/matrix.ts index e57331e..6fc21f3 100644 --- a/ci/github-actions/benchmark/matrix.ts +++ b/ci/github-actions/benchmark/matrix.ts @@ -124,7 +124,7 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = competitors: [ ['dutree', '--summary'], ['dua', '--apparent-size'], - ['du', '--apparent-size', '--total'], + ['du', '--apparent-size', '--summarize'], ], }, { @@ -153,7 +153,7 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] = ['dua', '--apparent-size'], ['ncdu', '-o', '/dev/null', '-0'], ['gdu', '--show-apparent-size', '--non-interactive', '--no-progress'], - ['du', '--apparent-size', '--total'], + ['du', '--apparent-size', '--summarize'], ], }, {