grit://cooking/bench/revs/count-range-commit-graph@git-git
← cookingall benchmarksraw data

grit revs · count-range-commit-graph @git-git

Bounded range count with a git-written commit-graph: HEAD~20..HEAD (issue #1669)

repo: Upstream git/git pinned at v2.47.0, full history · 4,525 files · 75,031 commits · 954 refs

$ grit-bench daily --only revs/count-range-commit-graph@git-git2026-10-27 · grit 8dbc58e77 · git version 2.43.0
toolmedianminmaxrunspeak memory
git2.3 ms2.2 ms2.7 ms2018 MB
grit2.8 ms2.5 ms3.1 ms2021 MB
grit is 1.2× slowermemory: 1.1× more
every timed run (log scale)
git
grit
1.7 ms4.0 ms
How it's measured
git runs
$ git rev-list --count HEAD~20..HEAD
grit runs
$ grit revs --count HEAD~20..HEAD
Where the time goesone extra traced run per tool, outside the timed runs
git
— not traced
grit · median run 2.8 ms
grit.repository.open
0.2 ms
grit.config.load ×2
0.1 ms
grit.pack.index.open
0.0 ms
Every day8 days
dategrit commitgitgritgrit vs gitgrit peak
2026-10-278dbc58e772.3 ms2.8 ms1.2× slower21 MB
2026-10-26c7cf2c443—not run——
2026-10-252824ad391—not run——
2026-10-24157a05dde—not run——
2026-10-23bddf92f86—not run——
2026-10-224c131b942—not run——
2026-10-21d4844e92a—not run——
2026-10-204754ad0b9—not run——