Skip to content

Instantly share code, notes, and snippets.

@romkatv
Created February 14, 2020 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romkatv/9ac3a7c7b7b31aa6c41bde75d8b00bea to your computer and use it in GitHub Desktop.
Save romkatv/9ac3a7c7b7b31aa6c41bde75d8b00bea to your computer and use it in GitHub Desktop.
Anecdote: gitstatus performance in a large Git repository
  • Source: starship/starship#921.
  • Timing for git status: between 12 and 15 seconds.
    • Method of timing: likely time git status.
    • Reported time: probably wall time.
    • Cold or hot: unknown.
  • Timing for gitstatus_query: between 3 and 4 seconds.
    • Method of timing: unknown.
    • Reported time: probably wall time.
    • Cold or hot: unknown.
    • gitstatusd command-line arguments: unknown.
  • Repository state: clean, soon after git gc, possibly with ignored files.
  • Output of git ls-files --others --ignored --exclude-standard | wc -l: unknown.
  • Output of git ls-files | wc -l: likely over 1M and probably less than 30M.
  • Output of git tag | wc -l: unknown.
  • Timing for git describe --tags --exact-match: unknown.
  • OS: macOS or Windows (unknown whether WSL, WSL2, Cygwin or MSYS2).
  • Storage device: SSD (unknown whether SATA or NVME).
  • File system: unknown.
  • CPU: unknown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment