Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Benchmark] NBody
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] [Benchmark] NBody
sejourne_kevin wrote:

> Martin Jambon a écrit :
> 
>> On Mon, 7 Feb 2005, Christophe TROESTLER wrote:
>>
>>
>>> Hi,
>>>
>>> For fun I have implemented an nbody simulation following
>>> http://shootout.alioth.debian.org/benchmark.php?test=nbody&lang=all&sort=cpu 
>>>
>>> (code is attached).  I've compiled it with
>>>
>>>  ocamlopt -o nbody.com -inline 3 -unsafe -ccopt -O2 nbody.ml
>>
>>
>>
>> -inline 100 gives better results for me (around -25%)
>> This should be enough to beat Java :-p if you get the same improvement on
>> your side.
> 
> Same for me, but "-ccopt -O2" don't change anything.

That might be because the C compiler doesn't really have anything to
do with ocamlopt... :)

The C *compiler* only comes into play if you have any .c files on the
ocamlopt command line - the C *linker* will be used for all linking.

Robert Roessler
robertr@rftp.com
http://www.rftp.com