English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-02-07 (19:37)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] [Benchmark] NBody
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.


Martin Jambon, PhD
Researcher in Structural Bioinformatics since the 20th Century
The Burnham Institute http://www.burnham.org
San Diego, California