Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: slow startup of zsh (1x slower than bash)



On Wed, Sep 4, 2019 at 12:15 PM Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
>
> Are there any consensus on how fast is zsh starting time compared with
> other shells? My test was on Mac via homebrew.

You need to pass -d to zsh to make benchmarks fair. Otherwise zsh is
sourcing global configs while bash doesn't.

    time ( repeat 1000 zsh -df -c '' )
    time ( repeat 1000 bash -c '' )

I get 4 ms and 3 ms for zsh and bash respectively.

Note that this number has virtually no bearing on interactive shell
startup time.

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author