#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    64
    Rep Power
    12

    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. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    34
    Rep Power
    14
    I could use a timer code as well, coded this hundreds of times in php but not in c++
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    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.

IMN logo majestic logo threadwatch logo seochat tools logo