Compare Git Prompt performance
masterDifferent git prompt implementations have significantly different performance profiles, especially in large repositories:
- git-branch: Shows only the branch name; latency is constant regardless of repository size.
- agnoster: Scans the entire repo for untracked files/changes; latency is linear to the number of files and can cause high command lag (🔴).
- starship: An external binary prompt; suffers from high latency due to multiple
fork+execcalls and high number ofclonesper command. - powerlevel10k: Uses
gitstatusto scan repositories without invoking thegitbinary directly. It does not block the zsh prompt during scans, keeping command lag constant even in giant repositories.