Recently, while customising my prompt, I tried to benchmark (to no avail) some git commands, in order to find the fastest way to, for example, get the HEAD branch name.
Now, while adding support for Mercurial, I noticed there is a --profile option that prints the time and the low-level operations a Mercurial commands performs while at it.
Do you know something like that for git? And if there isn’t, where should I request it?
Platform is MacOs X 10.8.2.
What platform are you using? In case of Linux or Mac OS X, you can always use
timecommand. For example: