]> source.dussan.org Git - jgit.git/commit
Add GetRefsBenchmark for testing refs lookups 83/185683/17
authorLuca Milanesio <luca.milanesio@gmail.com>
Tue, 21 Sep 2021 23:38:24 +0000 (00:38 +0100)
committerLuca Milanesio <luca.milanesio@gmail.com>
Fri, 1 Apr 2022 20:39:35 +0000 (16:39 -0400)
commita706835a49b3973fd0b15ea7edf42de1aa86627a
treec140ac8fa7342dcd0b5449460dff618d3542a467
parentaa5a2c4619aedccc99463034ab3fcf622c3dc8f3
Add GetRefsBenchmark for testing refs lookups

Introduce a new benchmark that shows a typical use-case
of opening a cached repository and fetching one ref from
a repository with a high number of refs.

This specific benchmark is tailored to the Gerrit use-case
of reading frequently individual refs SHA1s and by ref-name
prefix from the All-Users repository.

Include the following variables for the benchmark:
- numBranches (from 100 up to 50000)
- trustFolderStat (true or false)
- useRefTable (true or false)

The benchmark needs to be evaluated on a local high-perf SSD
and on a slower NFS network disk.

Bug: 576165
Change-Id: Ie59a87ca9f0191ff30229688e3430332e2f59a4f
org.eclipse.jgit.benchmarks/src/org/eclipse/jgit/benchmarks/GetRefsBenchmark.java [new file with mode: 0644]