[Haskell-cafe] Windows vs. Linux x64

Ketil Malde ketil at malde.org
Thu Nov 27 03:51:12 EST 2008


Bartosz Wójcik <bartek at sudety.it> writes:

> Win32 Core2Duo 1.8GHz 1GB RAM 
>    17 Mb total memory in use
>    MUT   time   56.97s  ( 57.02s elapsed)
>    %GC time       0.5%

> Win32 Core2Duo 2.2GHz 2GB RAM
>   17 Mb total memory in use
>   MUT   time   57.44s  ( 57.53s elapsed)
>   %GC time       0.7%  (0.8% elapsed)

So, despite the CPU being 25% faster, it's exactly as fast.  Memory
bound?

> Win32 P4 2.8GHz 1GB RAM
>    17 Mb total memory in use
>    MUT   time  171.64s  (175.78s elapsed)
>    %GC time       1.7%  (1.5% elapsed)

You're doing divisions, and I seem to remember division being an
operation that wreaked havoc with the P4's ALU or trace cache, or
something like that.

> Linux64 Core2Duo 2.2GHz 2GB RAM
>    41 MB total memory in use (1 MB lost due to fragmentation)
>    MUT   time   68.26s  ( 68.92s elapsed)
>    %GC time       0.9%  (1.1% elapsed)

> Linux32 Core2Duo 2.3GHz 4GB RAM
>    17 Mb total memory in use
>    MUT   time   51.77s  ( 51.83s elapsed)
>    %GC time       0.5%  (0.6% elapsed)

Interesting that Linux32 is actually faster than Win32. Different
cache sizes?

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list