Commit staged changes vs git commit
repo: 10,000-file synthetic repository; canonical cached shape, scenario variants documented by the runner · 10,000 files · 1,000 commits · 800 refs
| tool | median | min | max | runs | peak memory |
|---|---|---|---|---|---|
| git | 26 ms | 25 ms | 28 ms | 20 | 13 MB |
| grit | 18 ms | 17 ms | 18 ms | 20 | 25 MB |
$ set -eu set -eu if [ -s /tmp/grit-bench-scratch/daily-synth-10k/.grit-bench-worktree-paths ]; then tr '\n' '\0' < /tmp/grit-bench-scratch/daily-synth-10k/.grit-bench-worktree-paths | xargs -0 git add -- > /dev/null 2>&1 fi git commit -q -m bench
$ grit commit bench
| date | grit commit | git | grit | grit vs git | grit peak |
|---|---|---|---|---|---|
| 2026-10-27 | 8dbc58e77 | 26 ms | 18 ms | 1.5× faster | 25 MB |
| 2026-10-26 | c7cf2c443 | 38 ms | 35 ms | 1.1× faster | 32 MB |
| 2026-10-25 | 2824ad391 | 29 ms | 21 ms | 1.4× faster | 23 MB |
| 2026-10-24 | 157a05dde | 27 ms | 22 ms | 1.2× faster | 23 MB |
| 2026-10-23 | bddf92f86 | 28 ms | 23 ms | 1.2× faster | 23 MB |
| 2026-10-22 | 4c131b942 | 28 ms | 26 ms | 1.1× faster | 22 MB |
| 2026-10-21 | d4844e92a | 27 ms | 33 ms | 1.2× slower | 21 MB |
| 2026-10-20 | 4754ad0b9 | 30 ms | 36 ms | 1.2× slower | 22 MB |