[YLUG] Why is this so much faster on an Opteron?
Alex Smith
alex at alexsmith.org
Mon Sep 24 15:43:03 BST 2007
Robert Hulme wrote:
>>>> How long does it take to run on peoples machines?
>>>>
>>> According to time, approx 3 seconds on my Macbook Pro (2.2 GHz Core 2
>>> Duo).
>>>
>> 0.07s user 0.02s system 75% cpu 0.116 total
>> model name : Intel(R) Pentium(R) 4 CPU 3.06GHz
>>
> OK, here's a good question. Why is Alex's P4 soooo much faster than
> the P4 I have here?
>
> Alex could you post your /proc/cpuinfo perhaps?
>
> Also does anyone have any idea wtf is going on? :P I'm using gcc (GCC)
> 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
>
> My /proc/cpuinfo looks like this:
> trueman% cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 15
> model : 4
> model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
> stepping : 3
> cpu MHz : 2800.000
> cache size : 2048 KB
> physical id : 0
> siblings : 2
> core id : 0
> cpu cores : 1
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 5
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
> lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr
> bogomips : 5990.63
> clflush size : 64
>
> processor : 1
> vendor_id : GenuineIntel
> cpu family : 15
> model : 4
> model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
> stepping : 3
> cpu MHz : 2800.000
> cache size : 2048 KB
> physical id : 0
> siblings : 2
> core id : 0
> cpu cores : 1
> fdiv_bug : no
> hlt_bug : no
> f00f_bug : no
> coma_bug : no
> fpu : yes
> fpu_exception : yes
> cpuid level : 5
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx
> lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr
> bogomips : 5985.52
> clflush size : 64
>
> -Rob
>
>
Disregard that, I suck. :-)
% gcc -O2 foo.cpp -o ./foo && time
./foo
~
./foo 35.15s user 0.14s system 74% cpu 47.516 total
More realistic, there. ;)
More information about the York
mailing list