3 repos · 30 commands · 2 broken · 4 slow · 5 filed
As a new-CLI author I re-checked the six fixes, built a tiny front end (st/save/stack/fsck/blame/walk) against grit-lib's public API with the serde-models feature, audited cancel/progress and JSON coverage, and ran a structure-aware mutation fuzzer over pack .idx, commit-graph, MIDX and split/untracked-cache index files. Verdict: the common library paths work well (status/commit/branch/blame/fsck-cancel are quick and typed), but two 'fixed' issues (#2390, #2563) were silently reverted on main by commit 5e28d0386, and I filed five new findings: a 22x slower RevWalk object enumeration, two corrupt-file robustness bugs (allocator abort, quadratic fsck), and two API gaps (no cancel/progress on read-side ops, serde-models covering only 12 of 43 result types).
| repo | files | commits | .git | notes |
|---|---|---|---|---|
| octocat/Hello-World | 1 | 3 | 1 MB | also used as the tiny repro for MIDX/bloom aborts and upload-pack bombs |
| rust-lang/cargo | 3,086 | 23,703 | 82 MB | fuzz target (copies with commit-graph, MIDX, split index, untracked cache), perf matrix |
| git/git | 4,866 | 82,797 | 326 MB | blame re-check, rev-list --objects, cancel audit |
| command | repo | grit | git | grit/git | result | notes |
|---|---|---|---|---|---|---|
| grit log -n 20 --oneline | rust-lang/cargo | 10 ms | 10 ms | 1.0× | ok | |
| grit status | rust-lang/cargo | 8.0 ms | 8.6 ms | 0.9× | ok | hyperfine warm; first run after clone 130 ms vs 10 ms |
| grit revs --count HEAD | rust-lang/cargo | 110 ms | 140 ms | 0.8× | ok | |
| grit blame --rev HEAD Cargo.toml | rust-lang/cargo | 90 ms | 110 ms | 0.8× | ok | |
| grit describe | rust-lang/cargo | 180 ms | 100 ms | 1.8× | ok | git/git describe not re-run (known #2467/#2462) |
| grit diff 0.80.0..HEAD | rust-lang/cargo | 310 ms | 320 ms | 1.0× | ok | |
| grit fsck | rust-lang/cargo | 1.42 s | 5.85 s | 0.2× | ok | 4x faster than git; grit lists all dangling objects, git only roots |
| grit log -n 50 -- src/cargo/core | rust-lang/cargo | 10 ms | 10 ms | 1.0× | ok | |
| grit merge-base HEAD~3000 HEAD~2500 | rust-lang/cargo | 60 ms | 60 ms | 1.0× | ok | |
| grit clone (local path) | rust-lang/cargo | 190 ms | 160 ms | 1.2× | ok | |
| grit bundle create --all | rust-lang/cargo | 870 ms | 1.05 s | 0.8× | ok | git bundle verify accepts it |
| grit fsck (corrupt idx + MIDX) | rust-lang/cargo | 960.00 s | 3.85 s | 249× | slow | #2579, killed after 16 min |
| grit log -n 1 (MIDX num_packs=0xffffffff) | octocat/Hello-World | — | — | — | crash | #2578 SIGABRT 103 GB alloc; git fatal exit 128 |
| grit log -- README (bloom num_hashes=0xffffffff) | octocat/Hello-World | — | — | — | crash | #2578 SIGABRT 16 GB alloc |
| grit upload-pack --stateless-rpc (18.8M duplicate wants) | octocat/Hello-World | 3.05 s | 10.97 s | 0.3× | memory | #2390 regressed on main (fix reverted by 5e28d0386) |
| grit log -n 20 --oneline | git/git | 0.0 ms | 0.0 ms | — | ok | |
| grit status | git/git | 4.6 ms | 6.3 ms | 0.7× | ok | hyperfine warm |
| grit revs --count HEAD | git/git | 420 ms | 580 ms | 0.7× | ok | |
| grit blame --rev HEAD Makefile | git/git | 1.10 s | 1.07 s | 1.0× | ok | #2572 no longer reproduces on main |
| grit blame --json builtin/commit.c vs git blame --line-porcelain | git/git | — | — | — | ok | 4 of 1993 lines differ (was 41, #2574) |
| grit log -n 50 -- builtin/commit.c | git/git | 40 ms | 40 ms | 1.0× | ok | |
| grit diff v2.0.0..HEAD | git/git | 860 ms | 520 ms | 1.7× | ok | |
| lib RevWalk::walk(objects=true) | git/git | 81.15 s | 3.79 s | 21× | slow | #2577, 21x |
| lib RevWalk::walk(objects=true) | rust-lang/cargo | 3.80 s | 440 ms | 8.6× | slow | #2577, 8.6x |
| lib RevWalk::walk (commits only) | git/git | 610 ms | — | — | ok | |
| lib Diff::blame(Makefile) cancel latency | git/git | 1.12 s | — | — | ok | returns 917 ms after cancel request; no cancel parameter (#2582) |
| lib Maintenance::fsck cancel at 400 ms | rust-lang/cargo | 408 ms | — | — | ok | returned 8 ms after cancel; full run 1657 ms |
| grit serve + curl v2 fetch / git clone | scratch/5x300KB | — | — | — | ok | #2568 verified |
| grit bundle create/unbundle chain | scratch | — | — | — | ok | #2569 verified; git bundle verify and fsck agree |
| stk st / save / stack (lib front end) | scratch | — | — | — | ok | StatusModel and CommitOutcome serialize with serde-models; commit carries change-id; works with global ssh signing config |