From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4AC63BC8B for ; Mon, 7 Feb 2005 20:37:15 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j17JbEDt005731 for ; Mon, 7 Feb 2005 20:37:14 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA20367 for ; Mon, 7 Feb 2005 20:37:14 +0100 (MET) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j17JbDRV030821 for ; Mon, 7 Feb 2005 20:37:14 +0100 Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 5DA5DC54DB7; Mon, 7 Feb 2005 14:37:12 -0500 (EST) X-Sasl-enc: tZ0c6B/aUsD6Bbg2GnYarw 1107805032 Received: from [172.16.112.115] (burnham.ljcrf.edu [192.231.106.2]) by frontend3.messagingengine.com (Postfix) with ESMTP id D0AF3247F3; Mon, 7 Feb 2005 14:37:08 -0500 (EST) Date: Mon, 7 Feb 2005 11:37:03 -0800 (PST) From: Martin Jambon X-X-Sender: martin@localhost To: Christophe TROESTLER Cc: "O'Caml Mailing List" Subject: Re: [Caml-list] [Benchmark] NBody In-Reply-To: <20050207.195724.87945401.Christophe.Troestler@umh.ac.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 4207C36A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4207C369.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 christophe:01 troestler:01 wrote:01 ocamlopt:01 -inline:01 -unsafe:01 -inline:01 century:98 jambon:02 jambon:02 debian:02 implemented:02 benchmark:02 benchmark:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: 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 -- Martin Jambon, PhD Researcher in Structural Bioinformatics since the 20th Century The Burnham Institute http://www.burnham.org San Diego, California