Measurement of Computing power
-
Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx
-
Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx
-
Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx
You could use performance monitor, set to log results to file, then run a typical session with the application. Analyse the results later (don't know what with however). On Windows you could access the performance counters directly using your own 'cycle counter' program, which you could of couse customise to show whatever metric you have in mind. On Linux you can access the proc filesystem to achieve much the same thing (albeit a simpler API, but you'll have more trouble finding the relevant variables) Given the cost of hardware and the fact you don't have much choice (if your app only needs a Pentium 200 were would you get them) it all seems like a lot of trouble. If your thinking of gaining real time response on powerfull enough PC's your bigger problem will be with the OS's. :((
-
Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx
First, solve the halting problem. (In other words, if you can find a general algorithm to determine simply whether an arbitrary application needs finite versus inifinite resources, much less how finite the resources will be, you will become rich and famous).
-
Hai, Are there any standard methods which help in finding the total computing power needed to run a particular application. For ex say app X needs 1000 CPU cycles Thanx
Hmmmm. I think I read something that could help you in petzold's book last week (or was it in Richter's book?). Anwyway, in Windows you can get the amount of time your process has been non-signaled, that is the amount of time it's been excecuting on the processor. I guess you could use this together with some code for measuring the clock-freq. on the computer to get a rough estimate on how many cycles it took. I can look it up tomorrow at work if I remember it. :)
-
Hmmmm. I think I read something that could help you in petzold's book last week (or was it in Richter's book?). Anwyway, in Windows you can get the amount of time your process has been non-signaled, that is the amount of time it's been excecuting on the processor. I guess you could use this together with some code for measuring the clock-freq. on the computer to get a rough estimate on how many cycles it took. I can look it up tomorrow at work if I remember it. :)
Ok, I found it (and I remembered to look it up. I must be younger than I think ;P ) The functions are GetProcessTimes and GetThreadTimes. look them up in MSDN.