Calculation of the following series of mathematical calculations can be performed too few times in 1s.
#include "stdio.h" #include "time.h" int i, J, L, K, m, jj;jj = 2342;k = 31455;l = 16452;m = 9823;i = 1000000;void Main () {I NT Warp_count = 0;int max_warp = 1000;long int count = 0;time_t b_second,l_second;time_t rawtime;struct TM * Timeinfo;whil E (1) {B_second = time (null); L_second = B_second+1;while ((b_second=time (null)) <l_second) {m = m ^ l;k = (k/m * JJ)% i ; l = J * M * k;i = (J * k) ^ m;k = (k/m * JJ)% I;m = m ^ l;m = m ^ L;i = (J * k) ^ m;k = (k/m * JJ)% I;m = i * i * I * I * i * i * i; m=k*l*jj*l;m = m ^ l;k = (k/m * JJ)% I;l = J * M * k;i = (J * k) ^ M;l = (k/m * JJ)% I;m = m ^ l;m = m ^ L;i = (J * k) ^ m;k = (k/m * JJ)% I;m = k * k * k * k * k-m/i;count++;} Time (&rawtime), Timeinfo = LocalTime (&rawtime);p rintf ("Time:%s", Asctime (timeinfo));p rintf ("%ld\n", count); Count=0;warp_count++;if (Warp_count==max_warp) break;}}
CPU Compute Performance Test program