Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Brace expansion performance
- X-seq: zsh-users 14956
- From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Brace expansion performance
- Date: Mon, 22 Mar 2010 17:24:16 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=mEjkgWgsAIx8TIXY4kOU4cFw20c9Xhs+ve4A6WPjz0w=; b=ZR7r970SWAIfrG2UJdEgprIuHRCFxntFv64KQxFsrNKKCO6feymJnUtIP/sdvTWBIJ JfP2moB4fHmyFIYe1hB86nY3XfYkKO3J8BPQm4YOnW0yYWaA+oHSMj8C84PLNhV6ftDU JUonCdNw1mJZjdls0RaTB05jaLNSoI7Rp7GOE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=WYOPwLIqYEXaLSARrNacdXSWk3TSZoHZZzUJwuZ2WSsY78CyKMTBgqCvlDlXVCdiRz L2FD4KLtrCLmeQw4L2ehXjpMkgFbTpXg6Z2Z8Ewhqn+Q/Pi9HSQidKr6oi+2VkAt4wOI gFxi32o15S1WG+9JftMGe/E/FZPBbPi8S1i2E=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi all,
does anybody know why the zsh brace expansion (?) performs so ...
differently?
[1]
% time ksh -c 'echo ${.sh.version};for i in {1..300000}; do :;done'
Version JM 93t+ 2009-05-01
0.50s user 0.24s system 90% cpu 0.817 total
% time bash -c 'echo $BASH_VERSION;for i in {1..300000}; do :;done'
4.0.33(1)-release
1.59s user 0.58s system 90% cpu 2.409 total
% time zsh -c 'print $ZSH_VERSION $ZSH_PATCHLEVEL;for i in {1..300000};
do :;done'
4.3.10 1.4705
15.26s user 5.24s system 87% cpu 23.468 total
[2]
$ time ksh -c 'echo ${.sh.version};for i in {1..300000}; do :;done'
Version M 1993-12-28 r
real 0m0.886s
user 0m0.873s
sys 0m0.014s
$ time bash -c 'echo $BASH_VERSION;for i in {1..300000}; do :;done'
3.1.17(1)-release
real 0m2.482s
user 0m2.463s
sys 0m0.019s
$ time zsh -c 'print $ZSH_VERSION $ZSH_PATCHLEVEL;for i in {1..300000};
do :;done'
4.2.6
real 0m47.353s
user 0m46.672s
sys 0m0.629s
Tested on VirtualBox Ubuntu 9.10 guest [1] and on a real RHEL 5.1 host[2].
Best regards
Dimitre
Messages sorted by:
Reverse Date,
Date,
Thread,
Author