ipooo 发表于 2009-10-30 06:03

你的CPU算1000万位PI需要多久?

superpi 1.5比较老了,现在pifast 4.3操作简便而且计算PI效率比较高
下载地址:http://numbers.computation.free.fr/Constants/PiProgram/pifast.zip

我的U很老了,E6550 2.33G,拿出来抛砖引玉

☆算PI 1000万位,选的是no Disk memory ,1024FFT,计算占用内存60M,只用了34.66秒,算出来的结果有12.7MB大

Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 10000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 1024 K
Physical memory used : ~ 61355 K
Disk memory used : ~ 0.00 Meg
------------------------------------------------------------
Computation run information :

Start : Thu Oct 29 21:23:51 2009
End   : Thu Oct 29 21:24:25 2009
Duration : 34.66 seconds
============================================================
Total computation time : 34.66 seconds (~ 0.01 hours)
============================================================

☆算PI 1亿位,no Disk memory ,8192FFT,计算占用内存500M,用了508.23秒,算出来的结果有129MB大

Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 100000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 8192 K
Physical memory used : ~ 525521 K
Disk memory used : ~ 0.00 Meg
------------------------------------------------------------
Computation run information :

Start : Thu Oct 29 21:27:48 2009
End   : Thu Oct 29 21:36:16 2009
Duration : 508.23 seconds
============================================================
Total computation time : 508.23 seconds (~ 0.14 hours)
============================================================

☆算PI 10亿位,basic Disk memory ,32768FFT,计算占用内存1500M,用了11111.88秒(其中Disk memory读写时间2604秒),算出来的结果有1.28GB大


Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 1000000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 32768 K
Physical memory used : ~ 1577920 K
Disk memory used : ~ 1907.35 Meg
------------------------------------------------------------
Computation run information :

Start : Thu Oct 29 22:19:29 2009
End   : Fri Oct 30 01:24:41 2009
Duration : 11111.88 seconds

Time spent in disk swapping : 2604 s (reading 1019, writing 1585)
============================================================
Total computation time : 11111.88 seconds (~ 3.09 hours)
============================================================
PI=
3.1415926............................................................................................................7139868209 3196353628 2046127557 1517139511 5275045519


所以....PI的第10亿位数是9

天依 发表于 2009-10-30 07:40

Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 10000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 1024 K
Physical memory used : ~ 61355 K
Disk memory used : ~ 0.00 Meg
------------------------------------------------------------
Computation run information :

Start : Fri Oct 30 07:38:40 2009
End   : Fri Oct 30 07:39:28 2009
Duration : 48.56 seconds
============================================================
Total computation time : 48.56 seconds (~ 0.01 hours)
============================================================

天依 发表于 2009-10-30 07:48

还是相信1.5多点....

你这个命令提示符的显示方式不习惯 也不喜欢操作麻烦

ipooo 发表于 2009-10-30 07:53

回复 3# 天依 的帖子

这不需要相信什么的,我比较过superpi 1.5和pifast4.3算出来的3350万位结果,是一致的。(可以通过同目录下生成的pi.txt查看算出的结果)

而且SuperPi的编写年代久远,计算很慢,同样算104万位,superpi要24秒,而pifast4.3只要2.4秒,算出来的结果也是一致的。所以才说superpi效率低...
不知道用SuperPi的人中有几个人知道Pifast,有几个知道Qpi,还有几个人两个都知道的

SuperPi在历史舞台上的地位是永远存在的,但是考验CPU速度,还是换更先进的算法和程序感觉会更好,更能体验飞速的感觉!看着SuperPi的排行榜,我仿佛看到了喷火的跑车发动机装在了拖拉机上...

你真的老了SuperPi...


普及下PI计算的知识:【转】SuperPi的幕后细节

705nk 发表于 2009-10-30 10:06

intel 3.5G双核

Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 10000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 1024 K
Physical memory used : ~ 61355 K
Disk memory used : ~ 0.00 Meg
------------------------------------------------------------
Computation run information :

Start : Fri Oct 30 10:05:15 2009
End   : Fri Oct 30 10:05:38 2009
Duration : 23.00 seconds
============================================================
Total computation time : 23.00 seconds (~ 0.01 hours)
============================================================

ipooo 发表于 2009-11-3 02:33

更新PI的50亿位计算,由于数字较大,所以计算分了几段:

☆算PI 50亿位,advanced Disk memory ,32768FFT,计算占用内存1500M,用了232485.54秒(其中Disk memory读写时间86206秒),算出来的结果有6.51GB大


Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 5000000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 32768 K
Physical memory used : ~ 1577920 K
Disk memory used : ~ 21457.67 Meg
------------------------------------------------------------
Computation run information :

Start : Fri Oct 30 22:51:56 2009
End   : Sat Oct 31 03:43:11 2009
Duration : 17475.59 seconds

Time spent in disk swapping : 4938 s (reading 2395, writing 2544)
------------------------------------------------------------
Computation run information :

Start : Sat Oct 31 03:56:44 2009
End   : Sat Oct 31 10:44:59 2009
Duration : 24495.38 seconds

Time spent in disk swapping : 8769 s (reading 4275, writing 4494)
------------------------------------------------------------
Computation run information :

Start : Sat Oct 31 11:26:37 2009
End   : Sat Oct 31 17:57:56 2009
Duration : 23478.77 seconds

Time spent in disk swapping : 8164 s (reading 3979, writing 4185)
------------------------------------------------------------
Computation run information :

Start : Sat Oct 31 19:23:06 2009
End   : Mon Nov 02 17:47:02 2009
Duration : 167035.89 seconds

Time spent in disk swapping : 64335 s (reading 34366, writing 29969)
============================================================
Total computation time : 232485.54 seconds (~ 64.58 hours)
============================================================

bloodax 发表于 2009-11-3 06:14

30秒啊

dy8303737 发表于 2009-11-3 17:09

我5000+黑的试过
34秒……没OC……

kk_true 发表于 2009-11-3 20:26

肥龙2 955 4核@3.6G

Program : PiFast version 4.3 (fix 1), by Xavier Gourdon
Computation of 10000000 digits of Pi
Method used : Chudnovsky
Size of FFT : 1024 K
Physical memory used : ~ 61355 K
Disk memory used : ~ 0.00 Meg
------------------------------------------------------------
Computation run information :

Start : Wed Nov 04 20:22:37 2009
End   : Wed Nov 04 20:22:59 2009
Duration : 22.17 seconds
============================================================
Total computation time : 22.17 seconds (~ 0.01 hours)
============================================================
页: [1]
查看完整版本: 你的CPU算1000万位PI需要多久?