LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-06-2006, 04:39 AM   #16
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,314

Rep: Reputation: 175Reputation: 175

I know what -f does, I was just testing, as per my quote,
whether -exec was much slower than | xargs.

Just thought someone may be interested.
 
Old 12-06-2006, 09:20 AM   #17
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The test isn't a very robust one. For a start it doesn't measure the time of xargs. There's also no way to eliminate the effects of other system load or caching like this.

Having said this, if you ignore the real time and look at the user and sys timings you get some idea. In this case the xargs looks a lot quicker, but then you're not adding the timings of the xargs operation.

I would guess that the system has slow (IDE?) IO. On machines with high performance IO the xargs method is generally quicker. Of course, the per-operation cost is different for different OSes. Linux actually has a very attractive process start overhead, so it's less noticable than on other *nixes.
 
Old 12-06-2006, 09:30 AM   #18
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,314

Rep: Reputation: 175Reputation: 175
? it measures the pipeline as a whole.

blimey it was only a silly test, don't take it seriously.

scsi on solaris 8.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to remove files older than 3 days rust8y Linux - General 26 10-04-2012 09:26 AM
How to move files older than 30 days gfem AIX 8 11-08-2006 05:58 AM
delete files older then a month? Red Squirrel Linux - Software 1 10-05-2005 11:54 PM
delete files older than 30 days using cronjob latheesan Linux - Newbie 5 06-14-2005 03:40 PM
delete files in server that is older than 30 days using cronjob latheesan *BSD 2 06-14-2005 01:37 PM


All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration