Bounded range count with a git-written commit-graph: HEAD~20..HEAD (issue #1669)
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 | 2.3 ms | 2.2 ms | 2.7 ms | 20 | 18 MB |
| grit | 2.8 ms | 2.5 ms | 3.1 ms | 20 | 21 MB |
$ git rev-list --count HEAD~20..HEAD
$ grit revs --count HEAD~20..HEAD