|
[Sponsors] |
November 10, 2002, 11:56 |
CPU Time using time command of unix
|
#1 |
Guest
Posts: n/a
|
I want to compare the performance of two different programs for matrix inversion. Somebody suggested me that one can do so by comparing CPU time using time command ($time a.out). But it gives three times (real, user, sys) and I don't understand which time is to be compared.
Please help. Thanks. Amit |
|
November 10, 2002, 12:28 |
Re: CPU Time using time command of unix
|
#2 |
Guest
Posts: n/a
|
Most time the following relation is correct. real = user + system I always use user time if I am trying to tune the code, just like your current situation . But for actual purpose , for example , the total runnning time of my RANS3D code, I just use real time.
|
|
November 12, 2002, 08:42 |
Re: CPU Time using time command of unix
|
#3 |
Guest
Posts: n/a
|
"user" time is the CPU time used to perform any tasks in so-called user space (including all the actual calculation etc). "system" time is the CPU time used to perform any system calls in the kernal space (such as "read" or "write" system call).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 06:55 |
Computational time | sunnysun | OpenFOAM Running, Solving & CFD | 5 | March 16, 2009 03:32 |
The method of Checking the CPU time | JunYoung Park | Main CFD Forum | 2 | April 19, 1999 15:34 |
On the reduction of cpu time | lee | Main CFD Forum | 4 | March 7, 1999 22:02 |
cpu time | Gengsheng Wei | Main CFD Forum | 1 | November 19, 1998 15:22 |