下了个 linux版的spuer-pi ,跑20次回计算(是否104万位?)
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- zmcbb30
- 帖子: 2717
- 注册时间: 2006-09-30 0:32
- 来自: 巴拉特星系第四行星──海尼森
下了个 linux版的spuer-pi ,跑20次回计算(是否104万位?)
比 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
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
相艾唔好口,够姜就只抽
BARTON 2500+/1536MDDR400
EP8RDA3G/MX4000 128M64bit 8X
DiamondPlus9-6Y080L0-ATA133
Samsung743DF
HiweedDesktop-1.0
- Amankwah
- 帖子: 624
- 注册时间: 2006-10-16 7:24
- 来自: 安康/西安/广州
- 联系:
-
- 帖子: 1074
- 注册时间: 2006-01-18 15:01
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
原生linux程序在此: http://www.linuxfans.org/nuke/modules.p ... o&did=4412
我的Dothan 1.73GHz 跑104万位 37秒。
windows下跑44秒,果然linux科学运算能力强大。
我的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
DELL UltraSharp 2209WA
Arch64, Testing repo
-
- 帖子: 452
- 注册时间: 2006-11-18 15:40
也是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
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
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
后面的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
- 联系:
./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
问一下,这个干什么的?这个秒数代表了什么?
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
问一下,这个干什么的?这个秒数代表了什么?
-
- 帖子: 96
- 注册时间: 2007-05-24 0:45
/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
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
- 联系:
大家不妨装一个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
DELL UltraSharp 2209WA
Arch64, Testing repo
-
- 帖子: 1340
- 注册时间: 2006-01-10 19:09
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
代码: 全选
# 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
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。