Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH performance regression in 5.8.1.2-test
On Mon, Apr 25, 2022 at 11:26 AM Jordan Patterson <jordanp@xxxxxxxxx> wrote:
>
> 'prefix/5.8.1/bin/zsh -i -c exit' ran
> 9.22 ± 0.27 times faster than 'prefix/5.8.1.2-test/bin/zsh -i -c exit'
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?
Without debugging:
line buffered: 0.57s user 0.31s system 100% cpu 0.883 total
block read: 0.56s user 0.30s system 100% cpu 0.862 total
With debugging:
line buffered: 1.21s user 1.44s system 72% cpu 3.669 total
block read: 0.80s user 0.93s system 100% cpu 1.720 total
Messages sorted by:
Reverse Date,
Date,
Thread,
Author