Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: slow startup of zsh (1x slower than bash)
- X-seq: zsh-users 24207
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Peng Yu <pengyu.ut@xxxxxxxxx>
- Subject: Re: slow startup of zsh (1x slower than bash)
- Date: Thu, 5 Sep 2019 21:00:01 +0200
- Cc: julien.nicoulaud@xxxxxxxxx, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>, zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ii0D+EiwAKEPfqQYx3bMPXRYrZ3Z7AwkQifeFIaUSEI=; b=cXjkz79VBmsDsv2ubqChhzp5G6ZdIqz3HytMwHN3ZZd8bWVZunYMhhDoIdItqG5tmG 2yy9phlu8OcxdXL+L1WYuyb9aq61H3MdTncMy9AIqB8hB/wfgWbMfVUSf0qS0ZmGAL22 ArNqzpZMiMFg4fHrwKukPH8g6JW7ufFBvmhhr6yqYyBEphEDxk7puPGquGzQ+WsK7AUW lOviySmMN1a4reOBXjuclQOUXXwhMfdMXE6RuM+QjgC/sOkDpoAUGYnuCoeUu1gP5nHG yatx6qbgubF8JJQ8PHRIOqBJU7SJmkcT1fwFZoZdJzSNLARBtjedVlTIE0M2RRYHr2eR hnHw==
- In-reply-to: <CABrM6wk+PG2jopGJ8OqpUz-yaXqKet6aZJk2Oc7jZbjS3kWa9A@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABrM6wk-psFFZcZW+M7OwD0ZwrMbNk4MN7e9aaJF9kBOFsVK4w@mail.gmail.com> <CAKc7PVDGmfMxkUzjmyFxJY7fNhHV16Z3xhQpNXnjEwAMf6G9hQ@mail.gmail.com> <CABrM6w=B8BP6Pk4HsW+XGDv0bpC9fYtNdr80SS6BtqegXJNcUA@mail.gmail.com> <CA+mcLN5dpscPNhpsKoA0j8tvcUh2-A7KOX7wNQYFQ7q3sdg+SA@mail.gmail.com> <CABrM6wkGd4=ikqoZOreovU95MpPe1fparZ+5qse-8fZ4M=3-OQ@mail.gmail.com> <CABrM6wk+PG2jopGJ8OqpUz-yaXqKet6aZJk2Oc7jZbjS3kWa9A@mail.gmail.com>
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