zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: schaefer@nbn.com
Cc: zsh-workers@math.gatech.edu
Subject: Re: The speed of zsh
Date: Sun, 25 Aug 1996 02:12:45 +0200 (MET DST)	[thread overview]
Message-ID: <199608250012.CAA26870@bolyai.cs.elte.hu> (raw)
In-Reply-To: <960824141541.ZM453@candle.brasslantern.com> from Bart Schaefer at "Aug 24, 96 02:15:41 pm"

> } The patch below improves zsh preformance by 10-15%.  An other 10% speed
> } improvement would be possible by avoiding the
> } child_block()/child_unblock() calls whenever possible (other shells do not
> } use any system calls while executing builtin-only scritpts).
> 
> I think I said before that we could avoid those if we aren't going to fork
> and if the job table is empty.  Maybe they're expensive enough to be worth
> the extra test.  On what do you base the 10% figure?

Because zsh time is 26.11s+3.00s, 94% CPU, 30.659 total while ksh is
9.99s+0.00s, 93% CPU, 10.674 total for 9999 bottles of beer.

It's clear that zsh spends 10% of the time in system calls and the only
system call used by zsh while executing non-forking builtin-only scripts is
sigprocmask (which can be easily seen using strace).

Zoltan


  reply	other threads:[~1996-08-25  0:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-24 19:59 Zoltan Hidvegi
1996-08-24 21:15 ` Bart Schaefer
1996-08-25  0:12   ` Zoltan Hidvegi [this message]
1996-08-25 14:25   ` Zoltan Hidvegi
1996-08-25 16:22     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199608250012.CAA26870@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=schaefer@nbn.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).