]> git.ipfire.org Git - thirdparty/git.git/commit
t/perf: add perf tests for for-each-ref
authorVictoria Dye <vdye@github.com>
Tue, 14 Nov 2023 19:53:58 +0000 (19:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Nov 2023 05:03:01 +0000 (14:03 +0900)
commit294bfc24418e81dfb204d14a3c3c24af9b195179
tree7ee7810dd502dc58245579119775e09677f51ba1
parent188782ecb1d326ff724e41a77ea8ccb72f21ad44
t/perf: add perf tests for for-each-ref

Add performance tests for 'for-each-ref'. The tests exercise different
combinations of filters/formats/options, as well as the overall performance
of 'git for-each-ref | git cat-file --batch-check' to demonstrate the
performance difference vs. 'git for-each-ref' with "%(*fieldname)" format
specifiers.

All tests are run against a repository with 40k loose refs - 10k commits,
each having a unique:

- branch
- custom ref (refs/custom/special_*)
- annotated tag pointing at the commit
- annotated tag pointing at the other annotated tag (i.e., a nested tag)

After those tests are finished, the refs are packed with 'pack-refs --all'
and the same tests are rerun.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p6300-for-each-ref.sh [new file with mode: 0755]