Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh poor performances while reading and testing ?
- X-seq: zsh-users 24003
- From: Marc Chantreux <eiro@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: zsh poor performances while reading and testing ?
- Date: Wed, 3 Jul 2019 15:58:24 +0200
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org EBF71FFD6
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1562162306; bh=dSaCKFxRgybVaucL96aTbzsIdCeeV88+SS/UPlZHvKA=; h=Date:From:To:Subject:From; b=UGrblxVgKdjEdul0afM8FQ7U+7Lwz0uwCFv6QF/i9ZofF06mXrmMaB7qNPX1PIS8L MCKno8cvZTXhemnuEIBxYNnPJDcnweS7xgG2qtDWEfCKflIBkcaduiM0fvOxqz/XU3 XsBdrG8DS5FKVEtEZ1zYxa+daHMkhYebW5I28KFzBIlG/Z7rj9Fa4ysZicBzHQbcXG 282hUUeWa9pOAM89vT+Xsv0hpgtDfNpS4qof8JZpZgGzBapnYBSvipQOlm2Bz8N8GB ekqGA2JDvZNtmb31M6WMakkZ9NB3XFVlFRBNfcMCh2De4qOUu0YAlOqE3JYt+V9GDF 6GHhRyb8hPLUA==
- 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
hello people,
i recently made a benchmark to emphasize the gain of speed
people can have using filters instead of pure shell loops.
however i was surprised to see how slow zsh is compared to
other shells when it comes to read data.
the interesting part of the benchmark is:
for it (bash zsh ksh) {
TIMEFMT=": $it %U %S %E"
time $it -c 'while read it; do : ; done < x > /dev/null'
}
: bash 4,95s 1,21s 6,18s
: zsh 12,65s 28,12s 40,82s
: ksh 9,87s 26,52s 36,42s
is there any obvious reason for that? is there a way to make
it faster without diving in the C code?
regards,
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author