Skip to content

Commit

Permalink
ci: benchmark: Add competitors and categories
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed May 30, 2021
1 parent 97749ab commit 7bac712
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -557,6 +557,23 @@ jobs:
chmod +x "DUA.tmp/${archive_name}/dua"
echo "$(pwd)/DUA.tmp/${archive_name}" >> "$GITHUB_PATH"
- name: Install ncdu
run: sudo apt install -y ncdu

- name: Install gdu
env:
REPO: https://github.com/dundee/gdu
VERSION: '5.0.0'
run: |
mkdir -p GDU.tmp
archive_name="dua-v${VERSION}-x86_64-unknown-linux-musl"
curl -L "${REPO}/releases/download/v${VERSION}/gdu_linux_amd64.tgz" > tmp.gdu.tar.gz
tar xf tmp.dua.tar.gz --directory=GDU.tmp
mkdir -p GDU.tmp/bin
chmod +x "GDU.tmp/${archive_name}"
ln -s "$(pwd)/GDU.tmp/${archive_name}" GDU.tmp/bin/gdu
echo "$(pwd)/GDU.tmp/bin" >> "$GITHUB_PATH"
- name: Install hyperfine
env:
REPO: https://github.com/sharkdp/hyperfine
@@ -575,6 +592,8 @@ jobs:
which dust
which dutree
which dua
which ncdu
which gdu
which du
which hyperfine
19 changes: 19 additions & 0 deletions ci/github-actions/benchmark/matrix.ts
Original file line number Diff line number Diff line change
@@ -93,6 +93,8 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] =
['dust', '--apparent-size'],
['dutree'],
['dua', '--apparent-size'],
['ncdu', '-o', '/dev/stdout', '-0'],
['gdu', '--show-apparent-size', '--non-interactive', '--no-progress'],
['du', '--apparent-size'],
],
},
@@ -103,6 +105,8 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] =
['dust'],
['dutree', '--usage'],
['dua'],
['ncdu', '-o', '/dev/stdout', '-0'],
['gdu', '--non-interactive', '--no-progress'],
['du'],
],
},
@@ -120,6 +124,7 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] =
competitors: [
['dutree', '--summary'],
['dua', '--apparent-size'],
['ncdu', '-o', '/dev/null', '-0'],
['du', '--apparent-size', '--total'],
],
},
@@ -128,6 +133,7 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] =
pduCliArgs: ['--min-ratio=0'],
competitors: [
['dutree'],
['ncdu', '-o', '/dev/stdout', '-0'],
['du', '--apparent-size'],
],
},
@@ -136,14 +142,27 @@ export const COMPETING_BENCHMARK_MATRIX: readonly CompetingBenchmarkCategory[] =
pduCliArgs: ['--no-sort'],
competitors: [
['du', '--apparent-size'],
['dua', '--apparent-size'],
['ncdu', '-o', '/dev/stdout', '-0'],
['gdu', '--show-apparent-size', '--non-interactive', '--no-progress'],
],
},
{
id: 'no-sort+summary',
pduCliArgs: ['--no-sort', '--max-depth=1'],
competitors: [
['dua', '--apparent-size'],
['ncdu', '-o', '/dev/null', '-0'],
['gdu', '--show-apparent-size', '--non-interactive', '--no-progress'],
['du', '--apparent-size', '--total'],
],
},
{
id: 'progress',
pduCliArgs: ['--progress'],
competitors: [
['ncdu', '-o', '/dev/stdout', '-1'],
['gdu', '--show-apparent-size', '--non-interactive'],
],
},
]

0 comments on commit 7bac712

Please sign in to comment.