This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance problem


Am Montag 22 September 2008 schrieb Åukasz Lew:
> My code uses also rusage - second most accurate source of timing I
> found on linux.
> It the same as used by time command line tool.

I use always wall time measured with gettimeofday on a machine that is 
reserved for my benchmark. My experience is that CPU-time measurement on 
linux can vary by 100% on machines that have high load. Even for machines 
with no load the CPU-time measurement varies by about 20%. 

Christoph


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]