|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need CPU intensive code.
Im writting a CPU benchmark program in C++ to test to see how stable a cpu is during overclocking. Would anyone care to donate cpu intensive code ? Also I need to have a timer that starts at the begin of excution and prints out how long the execution took. Thanks
! |
|
#2
|
|||
|
|||
|
I could use a timer code as well, coded this hundreds of times in php but not in c++
|
|
#3
|
|||
|
|||
|
different parts of your cpu heat up depending on the instructions used. But I have got no further information about this.
cpu intensive is a simple Code:
int main() {
while (1);
}
but I canīt tell which part of the CPU would be stressed. I guess there is at least these parts: - Integer unit, probably several + MMX + SSE + ... - fpu - cache (how can one produce as many cache hits as possible? sorry, no idea...) For question #2: timers are OS dependent, so you need to tell us that first.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Need CPU intensive code. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|