LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-14-2003, 03:14 AM   #1
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
benchmark test bash script


Hi all. I am going to be changing my system around and want to do some before/after testing. I'm thinking of doing some local copying of files, as well as some network stuff too.

I've got the basic system stuff, but I need to know how I can calculate (somewhat precisely) the amount of time it takes for the process, as well as the system resources taken up at that time (I'm thinking 'free' will handle that).

Does anybody know how I can do this and/or have any suggestions for the kind of stuff I can test that are considered good benchmark tests?

Any help would be appreciated.
 
Old 02-14-2003, 06:16 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I don't have any experience with this, but a search on freshmeat turned up several benchmarking utilities.
 
Old 02-14-2003, 10:51 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Re: benchmark test bash script

Quote:
Originally posted by PTBmilo
I've got the basic system stuff, but I need to know how I can calculate (somewhat precisely) the amount of time it takes for the process
For this, you may want to have a look at the "time" utility. For example:

shell> time tar xjf linux-2.4.20.tar.bz2

prints (on my machine):

real 1m18.064s
user 0m43.740s
sys 0m3.670s

For more info see "man time".
 
Old 02-14-2003, 04:37 PM   #4
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Original Poster
Rep: Reputation: 30
Thanks Hko, it looks like time is just what I was looking for (go figure).

Thanks for the link too, wapcaplet I might try out a couple of them.
 
  


Reply



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 'test' question linmix Programming 5 11-29-2005 11:49 AM
Bash Script test for empty dir uopjohnson Linux - Software 3 10-07-2005 06:45 PM
Using Knoppix to Test, Diagnose & Benchmark kwixson Linux - Newbie 2 01-04-2005 08:20 AM
Simple webserver test script (bash) somedudeppf Programming 3 01-14-2004 10:30 AM
bash script test file operators... bulliver Programming 3 10-17-2003 12:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:20 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
Open Source Consulting | Domain Registration