|
发表于 2005-12-11 16:23:20
|
显示全部楼层
- Gentoo Linux 2005.1 , 2.6.14-gentoo-r4 , i686 Intel(R) Pentium(R) 4 Mobile CPU 1.50GHz GenuineIntel GNU/Linux
复制代码
- $cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 15
- model : 2
- model name : Intel(R) Pentium(R) 4 Mobile CPU 1.50GHz
- stepping : 4
- cpu MHz : 1500.001
- cache size : 512 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
- bogomips : 3005.15
复制代码
- $gcc -v
- Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
- Configured with: /var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
- Thread model: posix
- gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
复制代码
- $time gcc count.c -o count
- real 0m0.138s
- user 0m0.080s
- sys 0m0.040s
- $time ./count
- Result is 3200002029.000000
- real 1m37.924s
- user 1m37.898s
- sys 0m0.004s
复制代码
- $time gcc -O2 count.c -o count
- real 0m0.143s
- user 0m0.100s
- sys 0m0.028s
- $time ./count
- Result is 3200002029.000000
- real 0m27.298s
- user 0m27.262s
- sys 0m0.000s
复制代码
我的破电脑优化后有比AMD 3000+还快的速度?迅驰赛扬1300MHz比P4 M1500MHz的快那么多啊。
楼上的G5看上去速度不怎么样嘛,使用优化参数编译后的结果还不如我这台32位处理器的破电脑,怎么回事?配不上传说中最快的桌面电脑之称。 |
|