- Cold start:
412ms
- Warm start:
195ms
Initialization of the completion system (compinit
/compaudit
/compdef
) appears to be the slowest part of shell startup. As shown by this test, zsh automatically handles caching for this which cuts startup time in half for subsequent shells.
- Add
zmodload zsh/zprof
to the start of~/.zshrc
andzprof
to the end of the file.