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:
$ time zsh -i -c exit
Before: 2,05s user 0,46s system 95% cpu 2,624 total
Start verbose:
zsh -xv
zprof
Show zprof profile stats (needs to get enabled on top of .zshrc
)
zprof
zsh-bench
- No Arch/AUR package
Install:
git clone https://github.com/romkatv/zsh-bench ~/projects/shell/zsh/zsh-bench
Run:
~/projects/shell/zsh/zsh-bench/zsh-bench