Switch branch vs git switch
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 | 21 ms | 20 ms | 22 ms | 20 | 10 MB |
| grit | 16 ms | 16 ms | 17 ms | 20 | 21 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 | 21 ms | 16 ms | 1.3× faster | 21 MB |
| 2026-10-26 | c7cf2c443 | 44 ms | 31 ms | 1.4× faster | 22 MB |
| 2026-10-25 | 2824ad391 | 23 ms | 19 ms | 1.2× faster | 20 MB |
| 2026-10-24 | 157a05dde | 23 ms | 18 ms | 1.2× faster | 20 MB |
| 2026-10-23 | bddf92f86 | 23 ms | 19 ms | 1.2× faster | 20 MB |
| 2026-10-22 | 4c131b942 | 23 ms | 21 ms | 1.1× faster | 19 MB |
| 2026-10-21 | d4844e92a | 23 ms | 20 ms | 1.1× faster | 18 MB |
| 2026-10-20 | 4754ad0b9 | 27 ms | 32 ms | 1.2× slower | 18 MB |