Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH performance regression in 5.8.1.2-test
- X-seq: zsh-workers 50099
- From: Jordan Patterson <jordanp@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: ZSH performance regression in 5.8.1.2-test
- Date: Mon, 25 Apr 2022 21:03:48 -0600
- Archived-at: <https://zsh.org/workers/50099>
- In-reply-to: <CAH+w=7ZfumqPJm3D-Yv7Svb=aOh+SBOeJzgwV+ghWuNDzrpUtQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHDOzW6wE2aP6-MMrBNAUYttzQwi2VC_OY7tJDwkQwrtp47zEQ@mail.gmail.com> <CAH+w=7ZfumqPJm3D-Yv7Svb=aOh+SBOeJzgwV+ghWuNDzrpUtQ@mail.gmail.com>
On Mon, Apr 25, 2022 at 7:09 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> I'm curious how large is your interactive startup? I just compared
> 5.8.1.2-test with and without the line-buffering patch running
> zsh -xfic 'autoload compinit; compinit -D' 2>>(wc)
> and in order to get any significant difference I need to have compiled
> with --enable-zsh-debug --enable-zsh-mem-debug.
>
> wc gives 55727 lines / 1858616 characters of xtrace output, which
> ought to be enough for a reasonable comparison?
Running that gives me 56619 lines / 1866092 characters. If I run a
benchmark with your command (without tracing), I do see some slowdown,
but not as dramatic a difference as when loading my normal zshrc with
plugins.
Benchmark 1: prefix/5.8/bin/zsh -fic "autoload compinit; compinit -D"
Time (mean ± σ): 295.4 ms ± 4.2 ms [User: 181.9 ms, System: 114.0 ms]
Range (min … max): 289.0 ms … 299.8 ms 10 runs
Benchmark 2: prefix/5.8.1/bin/zsh -fic "autoload compinit; compinit -D"
Time (mean ± σ): 295.1 ms ± 3.4 ms [User: 183.4 ms, System: 112.1 ms]
Range (min … max): 289.8 ms … 299.5 ms 10 runs
Benchmark 3: prefix/5.8.1.2-test/bin/zsh -fic "autoload compinit; compinit -D"
Time (mean ± σ): 365.3 ms ± 4.2 ms [User: 204.8 ms, System: 160.4 ms]
Range (min … max): 358.7 ms … 373.1 ms 10 runs
Summary
'prefix/5.8.1/bin/zsh -fic "autoload compinit; compinit -D"' ran
1.00 ± 0.02 times faster than 'prefix/5.8/bin/zsh -fic "autoload
compinit; compinit -D"'
1.24 ± 0.02 times faster than 'prefix/5.8.1.2-test/bin/zsh -fic
"autoload compinit; compinit -D"'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author