Shallow clone (`--depth 1`) over smart HTTP vs git clone --depth 1
repo: Upstream git/git pinned at v2.47.0, full history · 4,525 files · 75,031 commits · 954 refs
| tool | median | min | max | runs | peak memory |
|---|---|---|---|---|---|
| git | 1.57 s | 1.56 s | 1.58 s | 5 | 38 MB |
| grit | 1.64 s | 1.63 s | 1.67 s | 5 | 53 MB |
$ rm -rf /tmp/grit-bench-scratch/daily-remote-git-git/remote.git-campaign-clone && cd /tmp/grit-bench-scratch/daily-remote-git-git && git clone -q --depth 1 http://127.0.0.1:37953/remote.git remote.git-campaign-clone
$ rm -rf /tmp/grit-bench-scratch/daily-remote-git-git/remote.git-campaign-clone && cd /tmp/grit-bench-scratch/daily-remote-git-git && grit clone --depth 1 http://127.0.0.1:37953/remote.git remote.git-campaign-clone