git-annex-benchmark(1)
β¨ git-annex-benchmark β the benchmark girlie of the git-annex manual π
okay bestie, so this is the page for git-annex-benchmark(1) from the General Commands Manual, and it's literally about benchmarking git-annex commands. no cap.
πΈ NAME πΈ
git-annex-benchmark β benchmark git-annex commands π₯
π SYNOPSIS π
git annex benchmark [criterionopts] ( -- commmand [; command] |
--databases=N )
(yes the commmand triple-m is exactly what the page says, i don't make the rules, i just vibe with them π)
π¦ DESCRIPTION π¦
so here's the tea: when git-annex is built with benchmarking support, this command lets you benchmark any other git-annex command. it's giving personal trainer for your repo. for example, git annex benchmark -- get . will benchmark git annex get. iconic.
the command you're benchmarking gets run in the current git-annex repository. and it does not run just once, bestie β the benchmarking process runs it several times so the result is actually statistically meaningful. it's giving science. β
now, when you're benchmarking an action like git annex get, the first run will often do much more than subsequent runs. π to make the benchmark repeat an action like getting a file each time, you can list additional commands separated by ;. heads up though: ; needs to be escaped from the shell. the combined script gets run repeatedly by the benchmark. example time:
git annex benchmark -- get . ';' drop .
also super important: git-annex benchmark does not fork new git-annex processes when benchmarking. it calls the command to benchmark internally, so it skips git-annex's startup overhead. so likeβ¦ don't try to use it to optimise git-annex startup. that's not the vibe here. π
π OPTIONS π
- before the
--, you can use any of the criterion library's command-line options. slay, borrowed greatness. β¨ - any options that git-annex usually accepts can be included after the command to benchmark. so you're not losing anything, bestie. π«Ά
--databases=Nβ this one benchmarks git-annex's use of sqlite databases instead of a command.Nis the number of items to benchmark. database girlies rise. π
π OUTPUT π
the output of the commands being benchmarked goes to standard output and standard error as usual. honestly it's often a good idea to use --quiet to avoid unnecessary output β unless, of course, the generation of that output is part of what you want to benchmark. iykyk. π§
the benchmark report itself is output to standard output by default, though criterion options can be used to redirect it to a file. for example:
git annex benchmark -o bench -- find >/dev/null
periodt. π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β thank you for your service king π«‘β¨
and that's the whole page, bestie!! this was git-annex-benchmark(1) from the General Commands Manual β the footer's just the page name itself, no extra version or date tea to spill, so we're keeping it cute and simple. πππΈ
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian bookworm: git-annex 10.20230126-3 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms