Switch away from a 300 MB loose text blob and back, writing it to the work tree: grit switch vs git switch
repo: Large loose text asset, plus README; other branch deletes the asset · 2 files · 2 commits · 3 refs
| tool | median | min | max | runs | peak memory |
|---|---|---|---|---|---|
| git | 828 ms | 814 ms | 1.43 s | 20 | 307 MB |
| grit | 738 ms | 493 ms | 767 ms | 20 | 19 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 | 828 ms | 738 ms | 1.1× faster | 19 MB |
| 2026-10-26 | c7cf2c443 | 842 ms | 482 ms | 1.7× faster | 18 MB |
| 2026-10-25 | 2824ad391 | 873 ms | 809 ms | 1.1× faster | 17 MB |
| 2026-10-24 | 157a05dde | — | not run | — | — |
| 2026-10-23 | bddf92f86 | — | not run | — | — |
| 2026-10-22 | 4c131b942 | — | not run | — | — |
| 2026-10-21 | d4844e92a | — | not run | — | — |
| 2026-10-20 | 4754ad0b9 | — | not run | — | — |