A simple C++ program using a for-loop to test CPU's calculation speed.
Output number of seconds needed for the computer to add 1 for 1,000,000 times. (which is typically less than 0.5 second) Useful to measure the current load of the local machine or a server (by running the code remotely via SSH).
Note: The test result may be different on various operating systems and compilation environment.
-- Yingbo (Max) Wang; University of California, Los Angeles