Profiling zsh startup time¶
- https://kevin.burke.dev/kevin/profiling-zsh-startup-time/
- https://github.com/ohmyzsh/ohmyzsh/issues/5327
- https://blog.jonlu.ca/posts/speeding-up-zsh
time + exit¶
- Beware: How not to benchmark
Measure time:
Start verbose:
zprof¶
Show zprof profile stats (needs to get enabled on top of .zshrc)
zsh-bench¶
- Only gives overall section results, not for discovering which component is slow
- No Arch/AUR package
Install:
Run:
Improve startup time¶
- zsh-startcache
Fast zsh startup via time-based caching. One plugin that replaces both evalcache and the slow compinit rebuild cycle