Version française
Home     About     Download     Resources     Contact us    
Browse thread
Slow allocations with 64bit code?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Slow allocations with 64bit code?
On Friday 20 April 2007 21:31, Markus Mottl wrote:
> In the considerably more complex code I'm currently working on it also
> seemed to me that it's allocations (the run time) that cause the
> performance difference.

Are you sure it isn't just eating the minor heap 2x faster?

I did quite a few benchmarks when I first got my AMD64 and found 64-bit to be 
faster on all but tree-based algorithms. I put that down to 64-bit pointers 
consuming 2x more memory (although the performance difference was much less 
than 2x).

Doing the benchmark again (nth.opt 50 1 cfg-10k-aSi) I get:

7.438s 32-bit metaocamlopt 3.09.1
5.289s 64-bit ocamlopt 3.10.0+beta

What version of OCaml are you using?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The F#.NET Journal
http://www.ffconsultancy.com/products/fsharp_journal/?e