6 repos · 33 commands · 1 broken · 5 slow · 5 filed
Dogfooded grit on Windows 11 x64 with the edge-case scenario: unicode and space paths, CRLF/autocrlf/gitattributes, symlinks, exec bits, empty repo, detached HEAD, .gitignore patterns, Windows-hostile tree entries, long paths, locked files, large binaries, plus cargo and Hello-World for timings. Correctness and git interoperability are very good: everything grit wrote passed git fsck --strict and matched git's view. I filed 5 issues: backslash tree entry accepted on checkout, two large-blob memory issues (fsck, restore with autocrlf=true), a Windows status slowdown on cargo, and a --stat alignment bug.
| repo | files | commits | .git | notes |
|---|---|---|---|---|
| rust-lang/cargo | 3,081 | 23,664 | 80.9 MB | full clone, git-made copy used for timings; pack 74.5 MiB over the wire |
| octocat/Hello-World | 1 | 3 | 0 MB | 5 commits on all branches |
| scratch/uni repo ünï | 11 | 3 | 0 MB | unicode/space/emoji/NFD names; also CRLF files |
| scratch/big-binary (grit-big) | 2 | 1 | 401.6 MB | 400 MB random + 1.5 GB zero file, loose blob for the random file |
| scratch/fs1 | 1 | 1 | 1 MB | single 1 GB zero file |
| scratch/crlf2, ign, bin1, mrg, clone1, win-bad/wb-* | 8 | 1 | 0 MB | small repos for gitattributes/CRLF, gitignore, binary/BOM/UTF-16 files, merge/stash/hooks, symlink/exec bits, hand-built hostile-name trees |
| command | repo | grit | git | grit/git | result | notes |
|---|---|---|---|---|---|---|
| grit init / status / log / diff / show / stash (empty repo) | scratch/empty | — | — | — | ok | exit codes and messages sensible |
| grit commit (9 unicode/space files) | scratch/uni repo ünï | 67 ms | — | — | ok | git fsck --strict clean |
| grit mv / rm / restore / blame / show --stat / diff --json | scratch/uni repo ünï | 25 ms | — | — | ok | --stat alignment bug #2567 |
| grit add/commit/restore with autocrlf and gitattributes | scratch/crlf2 | 35 ms | — | — | ok | matches git --eol output |
| grit clone (symlink/exec repo) | scratch/srcgit | 138 ms | — | — | ok | |
| grit ignore check / add --dry-run / clean | scratch/ign | 35 ms | — | — | ok | matches git ls-files -o --exclude-standard |
| grit switch --detach / commit / tag / reflog | scratch/ign | 30 ms | — | — | ok | |
| grit clone (hostile tree entry back\slash.txt) | scratch/win-bad | 78 ms | 79 ms | 1.0× | wrong | grit accepts and writes back/slash.txt, git rejects: #2563 |
| grit clone (case-colliding tree) | scratch/src-case | 127 ms | 119 ms | 1.1× | ok | same collision warning and state as git |
| grit clone (304-char path) | scratch/longp | 145 ms | 123 ms | 1.2× | ok | git fails with Filename too long, grit works |
| grit switch with locked file | scratch/win1 | 40 ms | — | — | ok | clear error, repo state intact |
| grit merge --check / merge / merge --abort (CRLF+unicode) | scratch/mrg | 45 ms | — | — | ok | |
| grit commit with failing and CRLF pre-commit hook | scratch/mrg | 82 ms | — | — | ok | |
| grit stash / pop (unicode, untracked) | scratch/mrg | 50 ms | — | — | ok | |
| grit push / clone / fetch / pull / worktree add+remove (unicode+space paths, file:/// URL) | scratch/mrg | 61 ms | — | — | ok | |
| grit clone https://github.com/octocat/Hello-World | octocat/Hello-World | 737 ms | 702 ms | 1.0× | ok | |
| grit clone https://github.com/rust-lang/cargo | rust-lang/cargo | 15.03 s | 11.56 s | 1.3× | ok | network-bound; 3 runs: grit 15.0-26.5 s vs git 11.3-13.5 s; not filed (network noise, memory under bar) |
| grit status | rust-lang/cargo | 130 ms | 50 ms | 2.6× | slow | 2.6-2.8x slower, filed #2566 (below the 3x label, but over the 100 ms/50 ms/10% bar) |
| grit log -n 50 | rust-lang/cargo | 15 ms | 27 ms | 0.6× | ok | |
| grit log --json -n 1000 | rust-lang/cargo | 30 ms | 50 ms | 0.6× | ok | |
| grit diff | rust-lang/cargo | 53 ms | 42 ms | 1.3× | ok | |
| grit blame src/util/workspace.rs | rust-lang/cargo | 89 ms | 130 ms | 0.7× | ok | |
| grit fsck | rust-lang/cargo | 1.53 s | 5.85 s | 0.3× | ok | grit 3.8x faster |
| grit revs HEAD --count | rust-lang/cargo | 125 ms | 167 ms | 0.8× | ok | |
| grit describe | rust-lang/cargo | 213 ms | 126 ms | 1.7× | slow | 1.7x slower than git describe (annotated tags); open duplicates #2462/#2467 |
| grit commit (400 MB random + 1.5 GB zero files) | scratch/big-binary | 2.16 s | 22.29 s | 0.1× | ok | git add+commit; grit 10x faster, far less memory |
| grit fsck (1.5 GB + 400 MB blobs) | scratch/big-binary | 3.46 s | 4.51 s | 0.8× | memory | #2564 |
| grit fsck (single 1 GB blob) | scratch/fs1 | 1.72 s | 2.39 s | 0.7× | memory | #2564 |
| grit gc / repack (1.9 GB, loose) | scratch/big-binary | 8.09 s | 14.01 s | 0.6× | ok | grit faster; git gc peak figure is of the launcher shim so not comparable |
| grit status after 1-byte edit of 400 MB file | scratch/big-binary | 351 ms | 1.86 s | 0.2× | ok | |
| grit diff (400 MB binary) | scratch/big-binary | 1.09 s | 3.33 s | 0.3× | ok | |
| grit switch --detach HEAD~1 (rewrites 400 MB file) | scratch/big-binary | 1.50 s | 1.43 s | 1.1× | ok | |
| grit restore big_zero.bin (1.5 GB, autocrlf=true) | scratch/big-binary | 2.17 s | 2.70 s | 0.8× | memory | 2.0x git's peak; #2565. With autocrlf=false: 9.8 MB |