/* Program: ciclod.c Author: meo@bogliolo.name Creation date: 31 Oct 95 :-) This simple C program test the processor speed with loop and + operations with double operands Can be useful to test the CPU speed with a well known test It is also useful to check the C optimizer The test has been compiled and used on several hardware and O.S. */ main() { int i, j; double k; printf("CICLO DOUBLE: processor speed tester v 1.0\n"); k=0; for (i=0; i<10000; i++) for (j=0; j<10000; j++) k+=1; printf("Last values: %i %i %lf\n", i, j, k); }