grit://cooking/bench/add/patch-file@synth-10k
← cookingall benchmarksraw data

grit add · patch-file @synth-10k

Apply worktree diff to index: grit add --patch-file vs git apply --cached

repo: 10,000-file synthetic repository; canonical cached shape, scenario variants documented by the runner · 10,000 files · 1,000 commits · 800 refs

$ grit-bench daily --only add/patch-file@synth-10k2026-10-27 · grit 8dbc58e77 · git version 2.43.0
toolmedianminmaxrunspeak memory
git6.4 ms5.9 ms29 ms209.3 MB
grit7.4 ms7.1 ms36 ms2020 MB
grit is 1.2× slowermemory: 2.2× more
every timed run (log scale)
git
grit
4.7 ms45 ms
How it's measured
before each run
grit-bench prepare-worktree-add-patch-file --git git
git runs
$ git apply --cached /tmp/grit-bench-scratch/daily-synth-10k/patch-file.diff
grit runs
$ grit add --patch-file /tmp/grit-bench-scratch/daily-synth-10k/patch-file.diff
Where the time goesone extra traced run per tool, outside the timed runs
git · median run 6.4 ms
index: do_write_index
2.2 ms
index: do_read_index
0.5 ms
index: name-hash-init
0.2 ms
cache_tree: read
0.0 ms
cache_tree: write
0.0 ms
grit · median run 7.4 ms
grit.index.read
0.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-278dbc58e776.4 ms7.4 ms1.2× slower20 MB
2026-10-26c7cf2c4438.1 ms10 ms1.3× slower21 MB
2026-10-252824ad3917.2 ms9.1 ms1.3× slower18 MB
2026-10-24157a05dde7.3 ms8.7 ms1.2× slower19 MB
2026-10-23bddf92f867.1 ms9.3 ms1.3× slower19 MB
2026-10-224c131b9426.5 ms8.7 ms1.3× slower18 MB
2026-10-21d4844e92a—not run——
2026-10-204754ad0b9—not run——