Re: How to compare algorithms in linux



On 2006-05-05, kabadi@xxxxxxxxx <kabadi@xxxxxxxxx> wrote:
I tried using time, but It does not take into account the fact that
other processes are also running. Like if my process is using 10% CPU
at some point and later it uses 40% CPU, i need a program which
accomodates this fact. It would help if i could get either teeh xaact
process time or number of computation steps.

You did not include any context from your earlier post or
the replies directing you to try the 'time' command.
Context is important, because on Usenet it is entirely
possible for postings to arrive out of order or to not
arrive at all. Chris F.A. Johnson has a web page that
explains many things about Usenet, the reportedly broken
Google web-based interface to Usenet newsgroups, and how to
properly post from Google:

<http://cfaj.freeshell.org/google>

The output of the 'time' command normally includes both the
'user' and 'system' CPU time uses as well as the elapsed
time. For comparing algorithms, the 'user' CPU time is most
likely the one you should look at.

--
Robert Riches
spamtrap42@xxxxxxxxxxx
(Yes, that is one of my email addresses.)
.



Relevant Pages

  • Re: Could I have purchased a cpu with XP, but only had a 233mhz proces
    ... a word on the terminology: the CPU is the Central Processing ... To me it's not a matter of arguing; ... known you longer than anyone else on usenet. ...
    (microsoft.public.windowsxp.general)
  • Re: How do linkers work?
    ... I see now that for posting in usenet a brain is not necessary ... following the program logic in your head - no CPU required. ...
    (comp.lang.c)
  • Re: svchost.exe stealing cpu resources
    ... >> resources? ... I want to run a program at 100% cpu but svchost.exe keeps ... Because it messes up the order in which people normally read text. ... What is the most annoying thing on usenet? ...
    (microsoft.public.windowsxp.general)