下了个 linux版的spuer-pi ,跑20次回计算(是否104万位?)

为当前最终发行版之前的所有版本提供支持
头像
zmcbb30
帖子: 2717
注册时间: 2006-09-30 0:32
来自: 巴拉特星系第四行星──海尼森
送出感谢: 0
接收感谢: 0
联系:

下了个 linux版的spuer-pi ,跑20次回计算(是否104万位?)

#1

帖子 zmcbb30 » 2007-01-10 16:27

比 windows 快了 5秒 (windows下55秒


zmcbb30@zmcbb30:~/Desktop/superpi/superpi$ sudo ./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 -M noframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the
compilation.
------ Started super_pi run : 2007年 01月 10日 星期三 16:11:28 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.675 Sec.
I= 1 L= 0 Time= 2.173 Sec.
I= 2 L= 0 Time= 2.491 Sec.
I= 3 L= 1 Time= 2.496 Sec.
I= 4 L= 2 Time= 2.495 Sec.
I= 5 L= 5 Time= 2.495 Sec.
I= 6 L= 10 Time= 2.498 Sec.
I= 7 L= 21 Time= 2.501 Sec.
I= 8 L= 43 Time= 2.506 Sec.
I= 9 L= 87 Time= 2.502 Sec.
I=10 L= 174 Time= 2.510 Sec.
I=11 L= 349 Time= 2.511 Sec.
I=12 L= 698 Time= 2.500 Sec.
I=13 L= 1396 Time= 2.505 Sec.
I=14 L= 2794 Time= 2.491 Sec.
I=15 L= 5588 Time= 2.507 Sec.
I=16 L= 11176 Time= 2.480 Sec.
I=17 L= 22353 Time= 2.475 Sec.
I=18 L= 44707 Time= 2.384 Sec.
I=19 L= 89415 Time= 2.228 Sec.
End of main loop
End of calculation. Time= 49.429 Sec.
End of data output. Time= 0.202 Sec.
Total calculation(I/O) time= 49.631( 1.632) Sec.
------ Ended super_pi run : 2007年 01月 10日 星期三 16:12:20 CST
头可断,血可流,靓女不可不追求
相艾唔好口,够姜就只抽

BARTON 2500+/1536MDDR400
EP8RDA3G/MX4000 128M64bit 8X
DiamondPlus9-6Y080L0-ATA133
Samsung743DF
HiweedDesktop-1.0
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 Amankwah » 2007-01-10 16:32

哪里下的?不是用wine吧 :?: :lol:
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
头像
zmcbb30
帖子: 2717
注册时间: 2006-09-30 0:32
来自: 巴拉特星系第四行星──海尼森
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 zmcbb30 » 2007-01-10 16:34

在中国linux公社下的
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01
送出感谢: 0
接收感谢: 1 次

#4

帖子 xiechy » 2007-01-10 17:53

楼主的机子比较慢阿,我算100万位只要
real 0m15.901s
user 0m14.773s
sys 0m0.124s
我还同时听着amarok,开ff开着15个标签~~~~
用的库是cln库.
xiechy
帖子: 1074
注册时间: 2006-01-18 15:01
送出感谢: 0
接收感谢: 1 次

#5

帖子 xiechy » 2007-01-10 17:55

看错了,原来是20次~~~汗了~~~~
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
送出感谢: 0
接收感谢: 7 次
联系:

#6

帖子 zhuqin_83 » 2007-01-11 16:15

原生linux程序在此: http://www.linuxfans.org/nuke/modules.p ... o&did=4412
我的Dothan 1.73GHz 跑104万位 37秒。
windows下跑44秒,果然linux科学运算能力强大。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
purewind
帖子: 452
注册时间: 2006-11-18 15:40
送出感谢: 0
接收感谢: 0

#7

帖子 purewind » 2007-01-11 19:10

也是2500+,不过内存是1G的ddr400,没有双通道
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年 01月 11日 星期四 19:04:58 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.708 Sec.
I= 1 L= 0 Time= 2.276 Sec.
I= 2 L= 0 Time= 2.616 Sec.
I= 3 L= 1 Time= 2.612 Sec.
I= 4 L= 2 Time= 2.608 Sec.
I= 5 L= 5 Time= 2.616 Sec.
I= 6 L= 10 Time= 2.616 Sec.
I= 7 L= 21 Time= 2.604 Sec.
I= 8 L= 43 Time= 2.620 Sec.
I= 9 L= 87 Time= 2.612 Sec.
I=10 L= 174 Time= 2.612 Sec.
I=11 L= 349 Time= 2.608 Sec.
I=12 L= 698 Time= 2.620 Sec.
I=13 L= 1396 Time= 2.604 Sec.
I=14 L= 2794 Time= 2.608 Sec.
I=15 L= 5588 Time= 2.596 Sec.
I=16 L= 11176 Time= 2.596 Sec.
I=17 L= 22353 Time= 2.564 Sec.
I=18 L= 44707 Time= 2.508 Sec.
I=19 L= 89415 Time= 2.340 Sec.
End of main loop
End of calculation. Time= 51.635 Sec.
End of data output. Time= 0.212 Sec.
Total calculation(I/O) time= 51.847( 1.896) Sec.
------ Ended super_pi run : 2007年 01月 11日 星期四 19:06:31 CST
头像
skyx
论坛版主
帖子: 9203
注册时间: 2006-12-23 13:46
来自: Azores Islands
送出感谢: 0
接收感谢: 1 次
联系:

#8

帖子 skyx » 2007-01-11 22:03


后面的20是指什么呢?是循环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年 01月 11日 星期四 22:00:38 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.448 Sec.
I= 1 L= 0 Time= 1.376 Sec.
I= 2 L= 0 Time= 1.576 Sec.
I= 3 L= 1 Time= 1.572 Sec.
I= 4 L= 2 Time= 1.576 Sec.
I= 5 L= 5 Time= 1.584 Sec.
I= 6 L= 10 Time= 1.572 Sec.
I= 7 L= 21 Time= 1.576 Sec.
I= 8 L= 43 Time= 1.580 Sec.
I= 9 L= 87 Time= 1.572 Sec.
I=10 L= 174 Time= 1.576 Sec.
I=11 L= 349 Time= 1.584 Sec.
I=12 L= 698 Time= 1.572 Sec.
I=13 L= 1396 Time= 1.576 Sec.
I=14 L= 2794 Time= 1.576 Sec.
I=15 L= 5588 Time= 1.576 Sec.
I=16 L= 11176 Time= 1.564 Sec.
I=17 L= 22353 Time= 1.544 Sec.
I=18 L= 44707 Time= 1.492 Sec.
I=19 L= 89415 Time= 1.384 Sec.
End of main loop
End of calculation. Time= 31.122 Sec.
End of data output. Time= 0.148 Sec.
Total calculation(I/O) time= 31.270( 0.752) Sec.
------ Ended super_pi run : 2007年 01月 11日 星期四 22:01:10 CST
no security measure is worth anything if an attacker has physical access to the machine
头像
juanzhewudi
帖子: 1114
注册时间: 2006-01-19 11:55
来自: HUST
送出感谢: 0
接收感谢: 0
联系:

#9

帖子 juanzhewudi » 2007-01-11 22:18

./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年 01月 11日 星期四 22:14:52 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.608 Sec.
I= 1 L= 0 Time= 1.892 Sec.
I= 2 L= 0 Time= 2.144 Sec.
I= 3 L= 1 Time= 2.140 Sec.
I= 4 L= 2 Time= 2.140 Sec.
I= 5 L= 5 Time= 2.144 Sec.
I= 6 L= 10 Time= 2.144 Sec.
I= 7 L= 21 Time= 2.136 Sec.
I= 8 L= 43 Time= 2.144 Sec.
I= 9 L= 87 Time= 2.136 Sec.
I=10 L= 174 Time= 2.148 Sec.
I=11 L= 349 Time= 2.136 Sec.
I=12 L= 698 Time= 2.136 Sec.
I=13 L= 1396 Time= 2.144 Sec.
I=14 L= 2794 Time= 2.140 Sec.
I=15 L= 5588 Time= 2.136 Sec.
I=16 L= 11176 Time= 2.116 Sec.
I=17 L= 22353 Time= 2.112 Sec.
I=18 L= 44707 Time= 2.044 Sec.
I=19 L= 89415 Time= 1.904 Sec.
End of main loop
End of calculation. Time= 42.359 Sec.
End of data output. Time= 0.200 Sec.
Total calculation(I/O) time= 42.559( 1.508) Sec.
------ Ended super_pi run : 2007年 01月 11日 星期四 22:15:35 CST

问一下,这个干什么的?这个秒数代表了什么?
purewind
帖子: 452
注册时间: 2006-11-18 15:40
送出感谢: 0
接收感谢: 0

#10

帖子 purewind » 2007-01-11 23:33

skyx 写了:
后面的20是指什么呢?是循环20次吗?
上面说是2的20次方,大约是104万
suizong
帖子: 96
注册时间: 2007-05-24 0:45
送出感谢: 0
接收感谢: 0
联系:

#11

帖子 suizong » 2007-07-18 22:15

/home/harvey/app/super pi/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年 07月 18日 星期三 22:11:55 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.456 Sec.
I= 1 L= 0 Time= 1.428 Sec.
I= 2 L= 0 Time= 1.660 Sec.
I= 3 L= 1 Time= 1.652 Sec.
I= 4 L= 2 Time= 1.636 Sec.
I= 5 L= 5 Time= 1.636 Sec.
I= 6 L= 10 Time= 1.636 Sec.
I= 7 L= 21 Time= 1.624 Sec.
I= 8 L= 43 Time= 1.628 Sec.
I= 9 L= 87 Time= 1.692 Sec.
I=10 L= 174 Time= 1.712 Sec.
I=11 L= 349 Time= 1.648 Sec.
I=12 L= 698 Time= 1.668 Sec.
I=13 L= 1396 Time= 1.644 Sec.
I=14 L= 2794 Time= 1.652 Sec.
I=15 L= 5588 Time= 1.736 Sec.
I=16 L= 11176 Time= 1.840 Sec.
I=17 L= 22353 Time= 1.632 Sec.
I=18 L= 44707 Time= 1.620 Sec.
I=19 L= 89415 Time= 1.732 Sec.
End of main loop
End of calculation. Time= 33.506 Sec.
End of data output. Time= 0.216 Sec.
Total calculation(I/O) time= 33.722( 0.980) Sec.

linux is so scary in my windows it 43s the best
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
送出感谢: 0
接收感谢: 7 次
联系:

#12

帖子 zhuqin_83 » 2007-07-19 2:42

大家不妨装一个linux下的pi,sudo apt-get install pi,计算104万位2^20=1048576 大概只要十来秒。我这里15秒不到。运行

代码: 全选

pi 1048576
自己读秒吧。

代码: 全选

Description: Compute Archimedes' constant Pi to arbitrary precision
 This program computes Archimedes' constant Pi to arbitrary precision.
 It is extremely fast and the precision is only limited by your machine's
 main memory.
 .
 This is a teaser for the CLN library, to which the actual computation is
 delegated.  You may use these decimal digits as random digits or search
 them for hidden messages.  :-)
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
ltkun
帖子: 1335
注册时间: 2006-01-10 19:09
送出感谢: 0
接收感谢: 0

#13

帖子 ltkun » 2007-07-20 17:58

ltkun@xubuntu-253:~$ time pi 1000000 > pi

real 2m24.945s
user 2m24.253s
sys 0m0.504s

我的机器够慢吧
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
送出感谢: 0
接收感谢: 7 次
联系:

#14

帖子 BigSnake.NET » 2007-07-20 18:27

代码: 全选

# time pi 1048576 > /dev/null 

real    0m18.740s
user    0m18.025s
sys     0m0.668s

代码: 全选

# time ./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年 07月 20日 星期五 18:38:24 HKT
 Start of PI calculation up to 1048576 decimal digits
 End of initialization. Time=       1.644 Sec.
 I= 1 L=       0        Time=       4.124 Sec.
 I= 2 L=       0        Time=       4.840 Sec.
 I= 3 L=       1        Time=       4.852 Sec.
 I= 4 L=       2        Time=       4.856 Sec.
 I= 5 L=       5        Time=       4.852 Sec.
 I= 6 L=      10        Time=       4.840 Sec.
 I= 7 L=      21        Time=       4.844 Sec.
 I= 8 L=      43        Time=       4.852 Sec.
 I= 9 L=      87        Time=       4.848 Sec.
 I=10 L=     174        Time=       4.840 Sec.
 I=11 L=     349        Time=       4.840 Sec.
 I=12 L=     698        Time=       4.824 Sec.
 I=13 L=    1396        Time=       4.824 Sec.
 I=14 L=    2794        Time=       4.820 Sec.
 I=15 L=    5588        Time=       4.816 Sec.
 I=16 L=   11176        Time=       4.780 Sec.
 I=17 L=   22353        Time=       4.732 Sec.
 I=18 L=   44707        Time=       4.584 Sec.
 I=19 L=   89415        Time=       4.240 Sec.
 End of main loop
 End of calculation.    Time=      95.686 Sec.
 End of data output.    Time=       0.568 Sec.
 Total calculation(I/O) time=      96.254(      19.065) Sec.
 ------ Ended super_pi run : 2007年 07月 20日 星期五 18:40:01 HKT

real    1m36.639s
user    1m17.589s
sys     0m18.721s

代码: 全选

$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 1
model name      : Intel(R) Pentium(R) 4 CPU 1.70GHz
stepping        : 2
cpu MHz         : 1700.336
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm up
bogomips        : 3404.81
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
only-fun
帖子: 168
注册时间: 2007-05-25 22:33
送出感谢: 0
接收感谢: 0
联系:

#15

帖子 only-fun » 2007-07-20 18:41

试试去 啊 !!!
绝对新手!

请多关照!
回复

回到 “老旧版本支持”