X-Spam-Check-By: sourceware.org Date: Mon, 19 Feb 2007 10:20:14 -0800 From: Christopher Layne To: cygwin AT cygwin DOT com Subject: Re: xargs problem Message-ID: <20070219182014.GA25468@ns1.anodized.com> References: <1171899485 DOT 45d9c45d44ef0 AT www DOT domainfactory-webmail DOT de> <20070219163431 DOT GX4158 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070219163431.GX4158@calimero.vinschen.de> User-Agent: Mutt/1.5.11 X-Assp-Spam-Prob: 0.00000 X-Assp-Whitelisted: Yes X-Assp-Envelope-From: clayne AT ns1 DOT anodized DOT com X-Assp-Intended-For: cygwin AT cygwin DOT com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mon, Feb 19, 2007 at 05:34:31PM +0100, Corinna Vinschen wrote: > > If you want a command run once for each item in a list of > > things, use a for loop: > > ...or `xargs -n 1' > > > Corinna Yeah, unfortunately don't try to do too much with that or you'll be waiting for a while. $ uname -a; uptime; time echo 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | xargs -n1 >/dev/null CYGWIN_NT-5.2 opteron 1.7.0s(0.165/4/2) 20070215 07:41:32 i686 Cygwin 10:05:57 up 1 day, 11:10, 0 users, load average: 0.00, 0.00, 0.00 real 0m5.185s user 0m0.150s sys 0m0.573s $ uname -a; uptime; time echo 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | xargs -n1 >/dev/null Linux ns1 2.6.20 #8 Mon Feb 19 08:03:12 PST 2007 i686 GNU/Linux 10:06am up 1:50, 7 users, load average: 3.08, 4.67, 5.53 real 0m0.366s user 0m0.012s sys 0m0.080s Gotta love it when a Linux box with *literally* 1/10th the cpu power (Celeron-D 2ghz Prescott core) is compiling KDE, and still knocking off numbers 15x times as fast as my hulked out dual-core Opteron 180. What is that, a ratio of about 150x times slower due to the blazing fork() we have now? -cl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/