grit://cooking/bench/init/branch@small
← cookingall benchmarksraw data

grit init · branch @small

Initialize repo with branch name: grit init -b trunk vs git init -b trunk

repo: 100-file synthetic repository · 100 files · 50 commits · 60 refs

$ grit-bench daily --only init/branch@small2026-10-27 · grit 8dbc58e77 · git version 2.43.0
toolmedianminmaxrunspeak memory
git2.2 ms1.6 ms2.8 ms206.5 MB
grit3.2 ms2.6 ms3.8 ms2014 MB
grit is 1.4× slowermemory: 2.1× more
every timed run (log scale)
git
grit
1.3 ms4.8 ms
How it's measured
before each run
grit-bench prepare-worktree-init-empty --git git
git runs
$ git init -b trunk
grit runs
$ grit init -b trunk
Where the time goesone extra traced run per tool, outside the timed runs
git
— not traced
grit · median run 3.2 ms
grit.repository.open
0.1 ms
grit.config.load
0.0 ms
Every day8 days
dategrit commitgitgritgrit vs gitgrit peak
2026-10-278dbc58e772.2 ms3.2 ms1.4× slower14 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——