- 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/zprofto the start of~/.zshrcandzprofto the end of the file.