发表于 : 2007-10-26 10:27
2的20次方wanzcong 写了:跟m$下的不一样啊,计算的值怎么差那么多?20是指的100万吧?
2的20次方wanzcong 写了:跟m$下的不一样啊,计算的值怎么差那么多?20是指的100万吧?
代码: 全选
$ 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年 11月 21日 星期三 03:23:18 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.612 Sec.
I= 1 L= 0 Time= 1.848 Sec.
I= 2 L= 0 Time= 2.108 Sec.
I= 3 L= 1 Time= 2.104 Sec.
I= 4 L= 2 Time= 2.136 Sec.
I= 5 L= 5 Time= 2.136 Sec.
I= 6 L= 10 Time= 2.096 Sec.
I= 7 L= 21 Time= 2.072 Sec.
I= 8 L= 43 Time= 2.152 Sec.
I= 9 L= 87 Time= 2.124 Sec.
I=10 L= 174 Time= 2.124 Sec.
I=11 L= 349 Time= 2.112 Sec.
I=12 L= 698 Time= 2.208 Sec.
I=13 L= 1396 Time= 2.168 Sec.
I=14 L= 2794 Time= 2.184 Sec.
I=15 L= 5588 Time= 2.076 Sec.
I=16 L= 11176 Time= 2.108 Sec.
I=17 L= 22353 Time= 2.076 Sec.
I=18 L= 44707 Time= 1.996 Sec.
I=19 L= 89415 Time= 1.844 Sec.
End of main loop
End of calculation. Time= 41.927 Sec.
End of data output. Time= 0.236 Sec.
Total calculation(I/O) time= 42.163( 1.140) Sec.
------ Ended super_pi run : 2007年 11月 21日 星期三 03:24:10 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年 11月 21日 星期三 11:35:29 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.524 Sec.
I= 1 L= 0 Time= 1.604 Sec.
I= 2 L= 0 Time= 1.836 Sec.
I= 3 L= 1 Time= 1.828 Sec.
I= 4 L= 2 Time= 1.840 Sec.
I= 5 L= 5 Time= 1.832 Sec.
I= 6 L= 10 Time= 1.840 Sec.
I= 7 L= 21 Time= 1.844 Sec.
I= 8 L= 43 Time= 1.844 Sec.
I= 9 L= 87 Time= 1.836 Sec.
I=10 L= 174 Time= 1.836 Sec.
I=11 L= 349 Time= 1.844 Sec.
I=12 L= 698 Time= 1.832 Sec.
I=13 L= 1396 Time= 1.836 Sec.
I=14 L= 2794 Time= 1.836 Sec.
I=15 L= 5588 Time= 1.840 Sec.
I=16 L= 11176 Time= 1.832 Sec.
I=17 L= 22353 Time= 1.816 Sec.
I=18 L= 44707 Time= 1.764 Sec.
I=19 L= 89415 Time= 1.640 Sec.
End of main loop
End of calculation. Time= 36.366 Sec.
End of data output. Time= 0.188 Sec.
Total calculation(I/O) time= 36.554( 1.120) Sec.
------ Ended super_pi run : 2007年 11月 21日 星期三 11:36:43 CST
代码: 全选
tenfar@tenfar-laptop:~$ time pi 1048576 > /dev/null
real 0m11.571s
user 0m11.161s
sys 0m0.164s
tenfar@tenfar-laptop:~$
代码: 全选
------ Started super_pi run : 2007年 11月 21日 星期三 19:15:08 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.928 Sec.
I= 1 L= 0 Time= 2.948 Sec.
I= 2 L= 0 Time= 3.388 Sec.
I= 3 L= 1 Time= 3.364 Sec.
I= 4 L= 2 Time= 3.360 Sec.
I= 5 L= 5 Time= 3.376 Sec.
I= 6 L= 10 Time= 3.368 Sec.
I= 7 L= 21 Time= 3.392 Sec.
I= 8 L= 43 Time= 3.368 Sec.
I= 9 L= 87 Time= 3.364 Sec.
I=10 L= 174 Time= 3.380 Sec.
I=11 L= 349 Time= 3.396 Sec.
I=12 L= 698 Time= 3.364 Sec.
I=13 L= 1396 Time= 3.384 Sec.
I=14 L= 2794 Time= 3.372 Sec.
I=15 L= 5588 Time= 3.376 Sec.
I=16 L= 11176 Time= 3.352 Sec.
I=17 L= 22353 Time= 3.328 Sec.
I=18 L= 44707 Time= 3.228 Sec.
I=19 L= 89415 Time= 2.964 Sec.
End of main loop
End of calculation. Time= 66.708 Sec.
End of data output. Time= 0.256 Sec.
Total calculation(I/O) time= 66.964( 2.220) Sec.
------ Ended super_pi run : 2007年 11月 21日 星期三 19:16:17 CST
代码: 全选
bobby@bobby-pc:~/桌面$ 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年 11月 25日 星期日 21:54:18 CST
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.484 Sec.
I= 1 L= 0 Time= 1.512 Sec.
I= 2 L= 0 Time= 1.704 Sec.
I= 3 L= 1 Time= 1.704 Sec.
I= 4 L= 2 Time= 1.708 Sec.
I= 5 L= 5 Time= 1.708 Sec.
I= 6 L= 10 Time= 1.716 Sec.
I= 7 L= 21 Time= 1.720 Sec.
I= 8 L= 43 Time= 1.720 Sec.
I= 9 L= 87 Time= 1.708 Sec.
I=10 L= 174 Time= 1.724 Sec.
I=11 L= 349 Time= 1.720 Sec.
I=12 L= 698 Time= 1.708 Sec.
I=13 L= 1396 Time= 1.712 Sec.
I=14 L= 2794 Time= 1.704 Sec.
I=15 L= 5588 Time= 1.704 Sec.
I=16 L= 11176 Time= 1.692 Sec.
I=17 L= 22353 Time= 1.672 Sec.
I=18 L= 44707 Time= 1.640 Sec.
I=19 L= 89415 Time= 1.500 Sec.
End of main loop
End of calculation. Time= 33.814 Sec.
End of data output. Time= 0.184 Sec.
Total calculation(I/O) time= 33.998( 0.764) Sec.
------ Ended super_pi run : 2007年 11月 25日 星期日 21:54:53 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 : Tue Nov 27 12:50:57 CST 2007
Start of PI calculation up to 1048576 decimal digits
End of initialization. Time= 0.380 Sec.
I= 1 L= 0 Time= 0.904 Sec.
I= 2 L= 0 Time= 1.076 Sec.
I= 3 L= 1 Time= 1.084 Sec.
I= 4 L= 2 Time= 1.052 Sec.
I= 5 L= 5 Time= 1.020 Sec.
I= 6 L= 10 Time= 1.032 Sec.
I= 7 L= 21 Time= 1.064 Sec.
I= 8 L= 43 Time= 1.104 Sec.
I= 9 L= 87 Time= 1.044 Sec.
I=10 L= 174 Time= 1.056 Sec.
I=11 L= 349 Time= 1.020 Sec.
I=12 L= 698 Time= 1.108 Sec.
I=13 L= 1396 Time= 1.048 Sec.
I=14 L= 2794 Time= 1.020 Sec.
I=15 L= 5588 Time= 1.016 Sec.
I=16 L= 11176 Time= 1.032 Sec.
I=17 L= 22353 Time= 1.076 Sec.
I=18 L= 44707 Time= 0.952 Sec.
I=19 L= 89415 Time= 0.956 Sec.
End of main loop
End of calculation. Time= 20.825 Sec.
End of data output. Time= 0.176 Sec.
Total calculation(I/O) time= 21.001( 1.440) Sec.
------ Ended super_pi run : Tue Nov 27 12:51:19 CST 2007[code]
代码: 全选
代码: 全选