Super PI 是一个计算圆周率的软件,在 Windows 平台上,经常使用 Super PI 来测试 CPU 超频是否稳定,可以说,Super PI 测试是否通过已经作为判断 CPU 稳定性的依据。suxixb(http://www.shareitem.org/2007/11/29/software-super-pi/)的一篇在UBUNTU下使用Super PI让我等使用ubuntu之辈也可以享受Super PI带来的好处了了。
使用方法,请至网页http://www.shareitem.org/2007/11/29/software-super-pi/下载super PI for ubuntu,解压后放在任意文件夹,使用终端进入文件夹,执行命令
sh super_pi,就可以执行SUPERPI了
说明:最后的 20 代表 1M(100万位),21 代表 2M,25 代表 32M。
下面是我的机器运行 sh super_pi选择 20 的结果
sh super_pi
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 : Wed Mar 12 00:16:45 CST 2008
Parameter(%i) to super_pi is missing. Parameter value ? 20
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.484 Sec.
I= 1 L= 0 Time= 1.420 Sec.
I= 2 L= 0 Time= 1.576 Sec.
I= 3 L= 1 Time= 1.640 Sec.
I= 4 L= 2 Time= 1.664 Sec.
I= 5 L= 5 Time= 1.608 Sec.
I= 6 L= 10 Time= 1.608 Sec.
I= 7 L= 21 Time= 1.584 Sec.
I= 8 L= 43 Time= 1.584 Sec.
I= 9 L= 87 Time= 1.640 Sec.
I=10 L= 174 Time= 1.600 Sec.
I=11 L= 349 Time= 1.584 Sec.
I=12 L= 698 Time= 1.560 Sec.
I=13 L= 1396 Time= 1.580 Sec.
I=14 L= 2794 Time= 1.580 Sec.
I=15 L= 5588 Time= 1.568 Sec.
I=16 L= 11176 Time= 1.580 Sec.
I=17 L= 22353 Time= 1.568 Sec.
I=18 L= 44707 Time= 1.540 Sec.
I=19 L= 89415 Time= 1.408 Sec.
End of main loop
End of calculation. Time= 31.706 Sec.
End of data output. Time= 0.168 Sec.
Total calculation(I/O) time= 31.874( 1.044) Sec.
—— Ended super_pi run : Wed Mar 12 00:17:35 CST 2008
32秒不到,看来还是不错的。
Tags: AI,Art,SoftWare,Ubuntu,终端Related posts:
©版权所有:于仁颇黎 | super Pi for Ubuntu | 于仁颇黎@机器人
三月 15th, 2008 at 01:32
看来我的本本落后了
irobot@ubuntu-laptop:~/super_pi$ sh super_pi
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 : 2008年 03月 15日 星期六 01:29:57 CST
Parameter(%i) to super_pi is missing. Parameter value ? 20
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.520 Sec.
I= 1 L= 0 Time= 1.620 Sec.
I= 2 L= 0 Time= 1.896 Sec.
I= 3 L= 1 Time= 1.896 Sec.
I= 4 L= 2 Time= 1.908 Sec.
I= 5 L= 5 Time= 1.888 Sec.
I= 6 L= 10 Time= 1.900 Sec.
I= 7 L= 21 Time= 1.888 Sec.
I= 8 L= 43 Time= 1.900 Sec.
I= 9 L= 87 Time= 1.892 Sec.
I=10 L= 174 Time= 1.900 Sec.
I=11 L= 349 Time= 1.896 Sec.
I=12 L= 698 Time= 1.892 Sec.
I=13 L= 1396 Time= 1.888 Sec.
I=14 L= 2794 Time= 1.896 Sec.
I=15 L= 5588 Time= 1.876 Sec.
I=16 L= 11176 Time= 1.864 Sec.
I=17 L= 22353 Time= 1.864 Sec.
I=18 L= 44707 Time= 1.812 Sec.
I=19 L= 89415 Time= 1.716 Sec.
End of main loop
End of calculation. Time= 37.382 Sec.
End of data output. Time= 0.240 Sec.
Total calculation(I/O) time= 37.622( 1.028) Sec.
—— Ended super_pi run : 2008年 03月 15日 星期六 01:30:46 CST
irobot@ubuntu-laptop:~/super_pi$
[回复]
三月 15th, 2008 at 13:53
你的电脑什么配置的,你试试看windows下的结果,应该会大于37秒的,我朋友的台机,配置还不错的,XP下都要40多秒。所以看起来,linux的执行效率是要高于windows.
[回复]