ubuntu 下玩Super PI

仅仅用于软件推荐,不适合发求软件或软件使用问题方面的贴子
qiwang
帖子: 34
注册时间: 2007-08-19 8:44

ubuntu 下玩Super PI

#1

帖子 qiwang » 2007-10-11 18:49

Super PI for Linux (各位可以玩玩)
有兴趣的可以对比同主频下Win和Lin的成绩,看看那个OS跑的更快,支持x86_64即AMD64

使用方法: (如果你不是一个newbie,直接看第5步即可)

1. 从附件下载tar包
2.解压
4. 用cd命令进入解包后的目录
5. 运行"sh super_pi 20"开始1M计算

super_pi命令参数含义:

20 <-> 1M
21 <-> 2M
25 <-> 32M
附件
super_pi.tar.gz
super pi for linux
(79.3 KiB) 已下载 1003 次
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2007-10-11 19:03

代码: 全选

$ ./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 : 2007年 10月 11日 星期四 19:07:50 HKT
 Parameter(%i) to super_pi is missing. Parameter value ? 20
 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       0.272 Sec.
 I= 1 L=       0        Time=       0.757 Sec.
 I= 2 L=       0        Time=       0.873 Sec.
 I= 3 L=       1        Time=       0.874 Sec.
 I= 4 L=       2        Time=       0.875 Sec.
 I= 5 L=       5        Time=       0.874 Sec.
 I= 6 L=      10        Time=       0.874 Sec.
 I= 7 L=      21        Time=       0.875 Sec.
 I= 8 L=      43        Time=       0.873 Sec.
 I= 9 L=      87        Time=       0.873 Sec.
 I=10 L=     174        Time=       0.874 Sec.
 I=11 L=     349        Time=       0.873 Sec.
 I=12 L=     698        Time=       0.872 Sec.
 I=13 L=    1396        Time=       0.873 Sec.
 I=14 L=    2794        Time=       0.869 Sec.
 I=15 L=    5588        Time=       0.868 Sec.
 I=16 L=   11176        Time=       0.863 Sec.
 I=17 L=   22353        Time=       0.847 Sec.
 I=18 L=   44707        Time=       0.818 Sec.
 I=19 L=   89415        Time=       0.761 Sec.
 End of main loop
 End of calculation.    Time=      17.208 Sec.
 End of data output.    Time=       0.104 Sec.
 Total calculation(I/O) time=      17.311(       1.516) Sec.
 ------ Ended super_pi run : 2007年 10月 11日 星期四 19:08:14 HKT
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#3

帖子 BigSnake.NET » 2007-10-11 19:06

比这个慢多了

代码: 全选

sudo aptitude install pi

代码: 全选

$ time pi 1048576 > /dev/null 

real    0m8.423s
user    0m8.354s
sys     0m0.074s
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
Quetalocatl
帖子: 162
注册时间: 2006-01-20 14:01
来自: Macau
联系:

#4

帖子 Quetalocatl » 2007-10-11 23:19

速度差很遠呢~

代码: 全选

$ ./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 : 四 10月 11 23:19:13 CST 2007
 Parameter(%i) to super_pi is missing. Parameter value ? 20
 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       0.356 Sec.
 I= 1 L=       0        Time=       1.212 Sec.
 I= 2 L=       0        Time=       1.480 Sec.
 I= 3 L=       1        Time=       1.488 Sec.
 I= 4 L=       2        Time=       1.748 Sec.
 I= 5 L=       5        Time=       1.292 Sec.
 I= 6 L=      10        Time=       1.236 Sec.
 I= 7 L=      21        Time=       1.108 Sec.
 I= 8 L=      43        Time=       1.664 Sec.
 I= 9 L=      87        Time=       1.592 Sec.
 I=10 L=     174        Time=       1.556 Sec.
 I=11 L=     349        Time=       1.428 Sec.
 I=12 L=     698        Time=       1.400 Sec.
 I=13 L=    1396        Time=       1.568 Sec.
 I=14 L=    2794        Time=       1.668 Sec.
 I=15 L=    5588        Time=       1.444 Sec.
 I=16 L=   11176        Time=       1.288 Sec.
 I=17 L=   22353        Time=       1.352 Sec.
 I=18 L=   44707        Time=       1.568 Sec.
 I=19 L=   89415        Time=       1.412 Sec.
 End of main loop
 End of calculation.    Time=      28.990 Sec.
 End of data output.    Time=       0.112 Sec.
 Total calculation(I/O) time=      29.102(       0.928) Sec.
 ------ Ended super_pi run : 四 10月 11 23:19:57 CST 2007

代码: 全选

$ time pi 1048576
real    0m15.734s
user    0m14.373s
sys     0m0.124s
貓球的CPU好強呀............
ltkun
帖子: 1340
注册时间: 2006-01-10 19:09

#5

帖子 ltkun » 2007-10-11 23:23

报一下什么油
头像
Element
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China

#6

帖子 Element » 2007-10-11 23:50

我的更差
$ ./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 : Thu Oct 11 23:53:38 CST 2007
Parameter(%i) to super_pi is missing. Parameter value ? 20
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.712 Sec.
I= 1 L= 0 Time= 2.296 Sec.
I= 2 L= 0 Time= 2.576 Sec.
I= 3 L= 1 Time= 2.608 Sec.
I= 4 L= 2 Time= 2.608 Sec.
I= 5 L= 5 Time= 2.612 Sec.
I= 6 L= 10 Time= 2.604 Sec.
I= 7 L= 21 Time= 2.564 Sec.
I= 8 L= 43 Time= 2.584 Sec.
I= 9 L= 87 Time= 2.580 Sec.
I=10 L= 174 Time= 2.588 Sec.
I=11 L= 349 Time= 2.544 Sec.
I=12 L= 698 Time= 2.588 Sec.
I=13 L= 1396 Time= 2.576 Sec.
I=14 L= 2794 Time= 2.564 Sec.
I=15 L= 5588 Time= 2.572 Sec.
I=16 L= 11176 Time= 2.536 Sec.
I=17 L= 22353 Time= 2.540 Sec.
I=18 L= 44707 Time= 2.472 Sec.
I=19 L= 89415 Time= 2.280 Sec.
End of main loop
End of calculation. Time= 51.071 Sec.
End of data output. Time= 0.212 Sec.
Total calculation(I/O) time= 51.283( 1.724) Sec.
------ Ended super_pi run : Thu Oct 11 23:54:34 CST 2007
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
ltkun
帖子: 1340
注册时间: 2006-01-10 19:09

#7

帖子 ltkun » 2007-10-12 8:56

代码: 全选

ltkun@ltkun-laptop:~/Desktop$ sh 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 : 2007年 10月 12日 星期五 08:57:33 CST
 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       0.492 Sec.
 I= 1 L=       0        Time=       1.416 Sec.
 I= 2 L=       0        Time=       1.612 Sec.
 I= 3 L=       1        Time=       1.604 Sec.
 I= 4 L=       2        Time=       1.628 Sec.
 I= 5 L=       5        Time=       1.628 Sec.
 I= 6 L=      10        Time=       1.620 Sec.
 I= 7 L=      21        Time=       1.620 Sec.
 I= 8 L=      43        Time=       1.624 Sec.
 I= 9 L=      87        Time=       1.616 Sec.
 I=10 L=     174        Time=       1.620 Sec.
 I=11 L=     349        Time=       1.616 Sec.
 I=12 L=     698        Time=       1.620 Sec.
 I=13 L=    1396        Time=       1.620 Sec.
 I=14 L=    2794        Time=       1.616 Sec.
 I=15 L=    5588        Time=       1.608 Sec.
 I=16 L=   11176        Time=       1.596 Sec.
 I=17 L=   22353        Time=       1.584 Sec.
 I=18 L=   44707        Time=       1.536 Sec.
 I=19 L=   89415        Time=       1.432 Sec.
 End of main loop
 End of calculation.    Time=      31.962 Sec.
 End of data output.    Time=       0.172 Sec.
 Total calculation(I/O) time=      32.134(       1.016) Sec.
 ------ Ended super_pi run : 2007年 10月 12日 星期五 08:58:05 CST
real 0m14.341s
user 0m13.573s
sys 0m0.164s

代码: 全选

U是t2310
头像
wanzcong
帖子: 201
注册时间: 2007-08-23 3:52

#8

帖子 wanzcong » 2007-10-12 12:28

跟m$下的不一样啊,计算的值怎么差那么多?20是指的100万吧?
头像
猛将兄
帖子: 2052
注册时间: 2005-10-19 17:33

#9

帖子 猛将兄 » 2007-10-12 12:34

图片
雕啸长空
帖子: 1897
注册时间: 2006-09-12 14:09

#10

帖子 雕啸长空 » 2007-10-12 12:46

我可怜的赛扬1.3

代码: 全选

fideas@zerone ~/temp $ ./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 : Fri Oct 12 12:47:24 CST 2007
 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       0.756 Sec.
 I= 1 L=       0        Time=       2.466 Sec.
 I= 2 L=       0        Time=       2.877 Sec.
 I= 3 L=       1        Time=       2.859 Sec.
 I= 4 L=       2        Time=       2.866 Sec.
 I= 5 L=       5        Time=       2.863 Sec.
 I= 6 L=      10        Time=       2.861 Sec.
 I= 7 L=      21        Time=       2.865 Sec.
 I= 8 L=      43        Time=       2.862 Sec.
 I= 9 L=      87        Time=       2.864 Sec.
 I=10 L=     174        Time=       2.864 Sec.
 I=11 L=     349        Time=       2.867 Sec.
 I=12 L=     698        Time=       2.859 Sec.
 I=13 L=    1396        Time=       2.869 Sec.
 I=14 L=    2794        Time=       2.855 Sec.
 I=15 L=    5588        Time=       2.849 Sec.
 I=16 L=   11176        Time=       2.837 Sec.
 I=17 L=   22353        Time=       2.803 Sec.
 I=18 L=   44707        Time=       2.735 Sec.
 I=19 L=   89415        Time=       2.592 Sec.
 End of main loop
 End of calculation.    Time=      56.493 Sec.
 End of data output.    Time=       0.297 Sec.
 Total calculation(I/O) time=      56.790(       1.250) Sec.
 ------ Ended super_pi run : Fri Oct 12 12:48:21 CST 2007
Fair winds and following seas !
eicesoft
帖子: 1
注册时间: 2007-10-11 18:42

#11

帖子 eicesoft » 2007-10-13 7:27

恩,amd的U
跑起来就是差阿!

代码: 全选

 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       0.368 Sec.
 I= 1 L=       0        Time=       1.140 Sec.
 I= 2 L=       0        Time=       1.300 Sec.
 I= 3 L=       1        Time=       1.296 Sec.
 I= 4 L=       2        Time=       1.304 Sec.
 I= 5 L=       5        Time=       1.296 Sec.
 I= 6 L=      10        Time=       1.296 Sec.
 I= 7 L=      21        Time=       1.308 Sec.
 I= 8 L=      43        Time=       1.308 Sec.
 I= 9 L=      87        Time=       1.308 Sec.
 I=10 L=     174        Time=       1.324 Sec.
 I=11 L=     349        Time=       1.300 Sec.
 I=12 L=     698        Time=       1.320 Sec.
 I=13 L=    1396        Time=       1.304 Sec.
 I=14 L=    2794        Time=       1.308 Sec.
 I=15 L=    5588        Time=       1.320 Sec.
 I=16 L=   11176        Time=       1.308 Sec.
 I=17 L=   22353        Time=       1.276 Sec.
 I=18 L=   44707        Time=       1.244 Sec.
 I=19 L=   89415        Time=       1.156 Sec.
 End of main loop
 End of calculation.    Time=      25.822 Sec.
 End of data output.    Time=       0.128 Sec.
 Total calculation(I/O) time=      25.950(       0.944) Sec.
头像
galeki
帖子: 13
注册时间: 2007-10-16 15:54

#12

帖子 galeki » 2007-10-17 9:00

可惜不支持多核的样子…… :shock:
头像
reulis
帖子: 156
注册时间: 2007-05-26 11:50

#13

帖子 reulis » 2007-10-17 11:05

BigSnake.NET 写了:比这个慢多了

代码: 全选

sudo aptitude install pi

代码: 全选

$ time pi 1048576 > /dev/null 

real    0m8.423s
user    0m8.354s
sys     0m0.074s
这位XD, E6550只要17秒就可以搞定100万位了?
俺机器配置和你都差不多。不知道6600能跑多少秒,呵呵!
---------------------------------------------------------------------
我终身奋斗的最低革命纲领:农妇__山泉__有点儿田
laoda796
帖子: 49
注册时间: 2007-04-26 22:24

#14

帖子 laoda796 » 2007-10-25 17:12

laoda796@laoda7962:~/桌面$ sh 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 : 2007年 10月 25日 星期四 17:09:50 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.840 Sec.
I= 1 L= 0 Time= 1.612 Sec.
I= 2 L= 0 Time= 1.848 Sec.
I= 3 L= 1 Time= 1.860 Sec.
I= 4 L= 2 Time= 1.940 Sec.
I= 5 L= 5 Time= 1.944 Sec.
I= 6 L= 10 Time= 1.936 Sec.
I= 7 L= 21 Time= 1.932 Sec.
I= 8 L= 43 Time= 1.904 Sec.
I= 9 L= 87 Time= 1.904 Sec.
I=10 L= 174 Time= 1.916 Sec.
I=11 L= 349 Time= 1.904 Sec.
I=12 L= 698 Time= 1.912 Sec.
I=13 L= 1396 Time= 1.872 Sec.
I=14 L= 2794 Time= 1.872 Sec.
I=15 L= 5588 Time= 1.912 Sec.
I=16 L= 11176 Time= 1.900 Sec.
I=17 L= 22353 Time= 1.892 Sec.
I=18 L= 44707 Time= 1.824 Sec.
I=19 L= 89415 Time= 1.712 Sec.
End of main loop
End of calculation. Time= 37.954 Sec.
End of data output. Time= 0.192 Sec.
Total calculation(I/O) time= 38.146( 0.940) Sec.
------ Ended super_pi run : 2007年 10月 25日 星期四 17:10:28 CST
laoda796@laoda7962:~/桌面$ sh super_pi 21
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 : 2007年 10月 25日 星期四 17:10:45 CST
Start of PI calculation up to 2097152 decimal digits
End of initialization. Time= 1.376 Sec.
I= 1 L= 0 Time= 3.516 Sec.
I= 2 L= 0 Time= 4.032 Sec.
I= 3 L= 1 Time= 4.068 Sec.
I= 4 L= 2 Time= 4.076 Sec.
I= 5 L= 5 Time= 4.112 Sec.
I= 6 L= 10 Time= 4.460 Sec.
I= 7 L= 21 Time= 3.952 Sec.
I= 8 L= 43 Time= 3.960 Sec.
I= 9 L= 87 Time= 4.012 Sec.
I=10 L= 174 Time= 4.028 Sec.
I=11 L= 349 Time= 4.008 Sec.
I=12 L= 698 Time= 4.064 Sec.
I=13 L= 1396 Time= 4.076 Sec.
I=14 L= 2794 Time= 3.900 Sec.
I=15 L= 5588 Time= 3.896 Sec.
I=16 L= 11176 Time= 3.988 Sec.
I=17 L= 22353 Time= 3.964 Sec.
I=18 L= 44707 Time= 3.988 Sec.
I=19 L= 89415 Time= 3.848 Sec.
I=20 L= 178831 Time= 3.664 Sec.
End of main loop
End of calculation. Time= 83.997 Sec.
End of data output. Time= 0.356 Sec.
Total calculation(I/O) time= 84.353( 4.556) Sec.
------ Ended super_pi run : 2007年 10月 25日 星期四 17:12:11 CST
spepsila
帖子: 2
注册时间: 2007-10-25 15:29

#15

帖子 spepsila » 2007-10-26 10:19

这个程序的算法和win下的superPI是一样的吗?
回复