Switch to a branch deleting 2000 files in 20 dirs of a 48k-file tree and back: grit switch vs git switch
repo: 48,000-file baseline tree; other branch deletes 2,000 files · 48,000 files · 2 commits · 3 refs
| tool | median | min | max | runs | peak memory |
|---|---|---|---|---|---|
| git | 109 ms | 100 ms | 122 ms | 53 | 22 MB |
| grit | 123 ms | 118 ms | 141 ms | 53 | 34 MB |
$ git switch -q bench-b && git switch -q bench-a
$ grit switch bench-b && grit switch bench-a
| date | grit commit | git | grit | grit vs git | grit peak |
|---|---|---|---|---|---|
| 2026-10-27 | 8dbc58e77 | 109 ms | 123 ms | 1.1× slower | 34 MB |
| 2026-10-26 | c7cf2c443 | 226 ms | 199 ms | 1.1× faster | 33 MB |
| 2026-10-25 | 2824ad391 | 132 ms | 139 ms | 1.1× slower | 33 MB |
| 2026-10-24 | 157a05dde | 129 ms | 130 ms | par | 34 MB |
| 2026-10-23 | bddf92f86 | — | not run | — | — |
| 2026-10-22 | 4c131b942 | — | not run | — | — |
| 2026-10-21 | d4844e92a | — | not run | — | — |
| 2026-10-20 | 4754ad0b9 | — | not run | — | — |