LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2014, 06:14 AM   #1
papori
LQ Newbie
 
Registered: Feb 2011
Posts: 23

Rep: Reputation: 0
compare between softwares


Hi,
I have softwares that i want to compare between them.
Comparison parameters are:
1. memory usage
2. cpu usage
3. time of running

How can i do that?
i didnt write those softwares (i dont have access to the code).
Thanks,
Pap
 
Old 03-12-2014, 09:36 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,117
Blog Entries: 2

Rep: Reputation: 113Reputation: 113
You can use valgrind to get memory usage and time to get cpu and time running information

for example

valgrind /bin/ls -lR /var > /dev/null
==24054== Memcheck, a memory error detector
==24054== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==24054== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==24054== Command: /bin/ls -lR /var
==24054==
==24054== HEAP SUMMARY:
==24054== in use at exit: 2,747,654 bytes in 59 blocks
==24054== total heap usage: 49,159 allocs, 49,100 frees, 27,671,387 bytes allocated
==24054==
==24054== LEAK SUMMARY:
==24054== definitely lost: 0 bytes in 0 blocks
==24054== indirectly lost: 0 bytes in 0 blocks
==24054== possibly lost: 0 bytes in 0 blocks
==24054== still reachable: 2,747,654 bytes in 59 blocks
==24054== suppressed: 0 bytes in 0 blocks
==24054== Rerun with --leak-check=full to see details of leaked memory
==24054==
==24054== For counts of detected and suppressed errors, rerun with: -v


time /bin/ls -lR /var > /dev/null
0.086u 0.199s 0:00.89 30.3% 0+0k 11784+0io 0pf+0w

time gives user, system, real, cpu%

Last edited by estabroo; 03-12-2014 at 09:38 AM. Reason: removed formatting blocks
 
1 members found this post helpful.
  


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
[SOLVED] How to compare a list of files in two directories: compare content and print size Batistuta_g_2000 Linux - Newbie 9 03-24-2013 08:05 AM
how to install softwares from other os like windows and also run portable softwares rudramurthy Linux - Newbie 6 10-16-2008 07:33 AM
The softwares I'm looking for jajamd86 Linux - Software 1 06-18-2007 05:33 AM
installing softwares arnav Linux - Software 8 02-21-2006 11:14 AM
softwares learner01 Linux - Newbie 5 01-19-2006 03:05 PM


All times are GMT -5. The time now is 09:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration