From: <Use...@zo...> - 2008-03-22 15:22:14
|
of...@wa...(?scar Fuentes) 22.03.08 01:01 Once upon a time "?scar Fuentes " shaped the electrons to say... >?scar Fuentes <of...@wa...> writes: >> But I expect the same from the gcc testsuite, for >> instance, as it is very similar. Compiling is slower too. It is a >> C++ project and is compiled with g++ 4.1.2 in VMWare (80 seconds) >> and 4.1.3 in coLinux (124 seconds). always exactly 50% "plus". >This is a another good test case: >Building GNU Make from >http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz #mkdir bench #cd bench #wget http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz #tar xzf make-3.81.tar.gz #cd make-3.81 #time ./configure <... <real 0m46.911s <user 0m10.410s <sys 0m28.630s #time make <real 0m15.610s (validated with manual stopwatch) <user 0m10.150s <sys 0m5.240s #time make <... <real 0m0.340s <user 0m0.220s sys 0m0.090s second try: real 0m43.181s user 0m10.270s sys 0m31.700s real 0m16.280s user 0m10.680s sys 0m5.570s CPU: cat /proc/cpuinfo vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.60GHz stepping : 8 cpu MHz : 1596.000 cache size : 2048 KB bogomips : 104.65 clflush size : 64 colinux:~/work/bench/make-3.81# free total used free shared buffers cached Mem: 125944 88200 37744 0 7172 52172 -/+ buffers/cache: 28856 97088 Swap: 524280 0 524280 #uname -a Linux colinux 2.6.22.18-co-0.8.0 #1 PREEMPT Fri Mar 14 05:23:51 UTC 2008 i686 GNU/Linux # cat /etc/issue Debian GNU/Linux 4.0 \n \l # gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) ########################################## native CPU debian (dynamically throttled 2,1GHz Dual core AMD CPU): uname -a Linux vdr 2.6.23x2 #2 SMP PREEMPT Sat Oct 20 03:08:47 CEST 2007 i686 GNU/Linux vdr:~/work/bench/make-3.81# gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) configure: real 0m19.401s user 0m10.430s sys 0m7.220s make: real 0m9.315s user 0m8.510s sys 0m0.680s vdr:~/work/bench/make-3.81# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 107 model name : AMD Athlon(tm) X2 Dual Core Processor BE-2350 stepping : 1 cpu MHz : 1000.000 cache size : 512 KB bogomips : 2010.75 ########################### Virtual Box: configure real 0m31.718s user 0m11.001s sys 0m17.721s make: real 0m11.393s user 0m8.489s sys 0m2.424s ubuntu 7.10 (With running)xwindows ~/bench/make-3.81# uname -a Linux zoc-desktop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux ~/bench/make-3.81# free total used free shared buffers cached Mem: 527644 447596 80048 0 22424 305236 -/+ buffers/cache: 119936 407708 Swap: 409616 34664 374952 ~/bench/make-3.81# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.60GHz stepping : 8 cpu MHz : 1595.741 cache size : 2048 KB bogomips : 3229.85 clflush size : 64 # cat /etc/issue Ubuntu 7.10 \n \l > coLinux VMWare >configure: 42.2 seconds 18.7 seconds >make : 15.1 seconds 8.5 seconds >As mentioned on my previous message, VMWare is 6.0.0 with Debian etch >as guest OS, gcc 4.1.2. coLinux is 0.7.1 with Ubuntu Gutsy, gcc 4.1.3. So i got the same results: -Colinux is the slowest. -VirtualPC third -VMware second (not tested here as too much overhead and too deep manipulations of OS) -Native fastest (surprise, surprise ;-)) (I wonder why "bogomips" are only 100 on colinux, bogo...) |