logoalt Hacker News

Cianticyesterday at 10:02 AM1 replyview on HN

I have these plugins: git, zsh-autosuggestions

    /usr/bin/time -f "%e seconds" zsh -i -c exit
    0.06 seconds
This is acceptable, maybe the zsh-autocomplete is the problem for author or something else?

I originally switched to ZSH + Oh My Shell because it opens so fast. Ideally plugins would initialize asynchronously but it's not very easy with shell scripts I think.


Replies

eddygyesterday at 10:10 AM

FWIW, that’s not a great way to benchmark zsh.

Check out zsh-bench⁽¹⁾ for a more authoritative approach, including first prompt lag, first command lag, input lag and exit lag.

⁽¹⁾ https://github.com/romkatv/zsh-bench