|
两台完全相同配置的机器,一台装fc9,一台装centos5,运行同一个程序测试fc9怎么比centos5慢很多呢?
cpu q6600 内存:4G
测试程序:
#include <stdio.h>
int main()
{
int i,j,k;
for (i=0; i<100000; i++)
for (j=0; j<10000; j++)
k = 1;
return 0;
}
fc9:time testtime
real 0m3.009s
user 0m2.986s
sys 0m0.000s
centos:time testtime
real 0m2.475s
user 0m2.422s
sys 0m0.001s
谁能给解释解释?(在fc9上编译) |
|