服务器性能测试–super PI 测试

  • Post author:
  • Post category:其他

Super PI 是利用CPU的浮点运算能力来计算出 π(圆周率)的程序,具有windows和linux版本,是目前普遍被超频玩家用做测试系统稳定性和测试CPU计算完后特定位数圆周率所需的时间。
官网:http://superpi.ilbello.com/pi/super_pi.tar.bz2
下载速度比较慢,可以直接在CSDN下载:
wget http://superpi.ilbello.com/pi/super_pi.tar.bz2
tar -jxvf super_pi.tar.bz2
./super_pi 20
20为位数。表示要算2的多少次方位,如通常要算小数点后1M位。
在这里插入图片描述
如果报错就需要安装对应的库(yum安装):
在这里插入图片描述

结果:
~# ./super_pi 20
Version 2.0 of the super_pi for Linux OS
Fortran source program was translated into C program with version 19981204 of
f2c, then generated C source program was optimized manually.
pgcc 3.2-3 with compile option of “-fast -tp px -Mbuiltin -Minline=size:1000 -Mnoframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant” was used for the
compilation.
—— Started super_pi run : Tue May 16 10:47:18 CST 2017
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.200 Sec.
I= 1 L= 0 Time= 0.498 Sec.
I= 2 L= 0 Time= 0.539 Sec.
I= 3 L= 1 Time= 0.536 Sec.
I= 4 L= 2 Time= 0.535 Sec.
I= 5 L= 5 Time= 0.532 Sec.
I= 6 L= 10 Time= 0.537 Sec.
I= 7 L= 21 Time= 0.529 Sec.
I= 8 L= 43 Time= 0.542 Sec.
I= 9 L= 87 Time= 0.532 Sec.
I=10 L= 174 Time= 0.582 Sec.
I=11 L= 349 Time= 0.974 Sec.
I=12 L= 698 Time= 1.379 Sec.
I=13 L= 1396 Time= 1.094 Sec.
I=14 L= 2794 Time= 1.353 Sec.
I=15 L= 5588 Time= 0.955 Sec.
I=16 L= 11176 Time= 1.408 Sec.
I=17 L= 22353 Time= 1.067 Sec.
I=18 L= 44707 Time= 1.242 Sec.
I=19 L= 89415 Time= 0.901 Sec.
End of main loop
End of calculation. Time= 17.033 Sec.
End of data output. Time= 0.070 Sec.
Total calculation(I/O) time= 17.103( 0.521) Sec.


版权声明:本文为qq_43467370原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。