From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c1cf31bf for ; Thu, 5 Sep 2019 19:00:57 +0000 (UTC) Received: (qmail 8622 invoked by alias); 5 Sep 2019 19:00:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24207 Received: (qmail 21878 invoked by uid 1010); 5 Sep 2019 19:00:49 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25559. spamassassin: 3.4.2. Clear:RC:0(209.85.166.51):SA:0(-2.0/5.0):. Processed in 4.042468 secs); 05 Sep 2019 19:00:49 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.51 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ii0D+EiwAKEPfqQYx3bMPXRYrZ3Z7AwkQifeFIaUSEI=; b=o2t74VfEUhplZVrpAg/tqAy15Gd1kyoLohG5MFAuSLhob3pZqGSWA5bamaP4FATVUM XBb2h+EJzT18KLuV0MnYJ0EfDQoAh6NZ3kA1nCHmc1ZdJDAwogwyBooq+DalxQjmlAUn iq4faRhK+j3g5ofOhtxjHSyH/z3BrNTLs4U5wUWc7bNrZOxQEFnDHAOtU/1B7nTP2ii3 /zal1qwr1YfeksW0EcndoQ4UC2ePipRJ14CBcVbFWqQObF5wGQ93+HrCsr1FLgAEpYCS vKIi6uiEd++/5sR6HTyHWBUy3B2VlMbDZpA7U+cm0y2iJ9bVnbAVs/+Ql7Q5xJu5Alxb Hulw== X-Gm-Message-State: APjAAAWeA+Svl4p4YCPY1hod1Uo9GaMHvjYJ6vit0CAE61NzTQcK3unh hEhkJNJ26SAVMO6O69LE7BeZOcr8vRLyu5EVUjA= X-Google-Smtp-Source: APXvYqzw9b5UnqKiRUIwogpgT0X2+nhc7SuBqgTxh2sBaBIkyaK9H0qyv3/3Ld6Gz/302uh4Edf/vz1D8Vapy91tCq8= X-Received: by 2002:a05:6638:681:: with SMTP id i1mr4277035jab.127.1567710012590; Thu, 05 Sep 2019 12:00:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Thu, 5 Sep 2019 21:00:01 +0200 Message-ID: Subject: Re: slow startup of zsh (1x slower than bash) To: Peng Yu Cc: julien.nicoulaud@gmail.com, Sebastian Gniazdowski , zsh-users Content-Type: text/plain; charset="UTF-8" On Wed, Sep 4, 2019 at 12:15 PM Peng Yu 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.