LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   process benchmarking (https://www.linuxquestions.org/questions/linux-software-2/process-benchmarking-758202/)

aryan1 09-28-2009 05:50 AM

process benchmarking
 
Hi All,

I want to measure the performance of a user-defined daemon over several sample runs in terms of its average CPU/Memory usage and running time.

I am using Ubuntu 9.04.

I would prefer a console-based benchmarking software capable of providing info about the above measurements (CPU/Memory usage and running time) over a sample run since I will need to write a shell script which will execute the user-defined daemon with different inputs and collect the statistics into a single file.

Thanks.

chrism01 09-28-2009 07:25 PM

For a start, there's the 'time' cmd http://linux.die.net/man/7/time and in Linux also the gnu extended version, usually referenced as \time.
Other toptions includes writing a wrapper in another lang eg Perl and using hi-res timers and even extracting various measures from the kernel, using the modules available from search.cpan.org.


All times are GMT -5. The time now is 05:14 PM.