zsh-users
 help / color / mirror / code / Atom feed
* zsh poor performances while reading and testing ?
@ 2019-07-03 13:58 Marc Chantreux
  0 siblings, 0 replies; 9+ messages in thread
From: Marc Chantreux @ 2019-07-03 13:58 UTC (permalink / raw)
  To: Zsh Users

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-05 18:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190703135824.GA19289__20170.6622539618$1562162400$gmane$org@prometheus.u-strasbg.fr>
2019-07-03 14:28 ` zsh poor performances while reading and testing ? Stephane Chazelas
2019-07-05 13:28   ` Marc Chantreux
2019-07-05 13:44     ` Peter Stephenson
2019-07-05 14:21       ` Marc Chantreux
2019-07-05 14:29         ` Peter Stephenson
2019-07-05 15:53           ` Marc Chantreux
2019-07-05 13:44     ` Mikael Magnusson
     [not found]   ` <20190705132842.GA21074__38577.2207098611$1562333415$gmane$org@prometheus.u-strasbg.fr>
2019-07-05 18:05     ` Stephane Chazelas
2019-07-03 13:58 Marc Chantreux

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).