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 ED7D1BC88 for ; Mon, 7 Feb 2005 21:30:00 +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 j17KU0tj013447 for ; Mon, 7 Feb 2005 21:30:00 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA22943 for ; Mon, 7 Feb 2005 21:30:00 +0100 (MET) Received: from smtp819.mail.sc5.yahoo.com (smtp819.mail.sc5.yahoo.com [66.163.170.5]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j17KTwJY013438 for ; Mon, 7 Feb 2005 21:29:59 +0100 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@63.194.18.166 with plain) by smtp819.mail.sc5.yahoo.com with SMTP; 7 Feb 2005 20:29:58 -0000 Message-ID: <4207D04B.5010505@rftp.com> Date: Mon, 07 Feb 2005 12:32:11 -0800 From: Robert Roessler Organization: Robert's High-performance Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Caml-list Subject: Re: [Caml-list] [Benchmark] NBody References: <4207C9D7.6000804@yahoo.fr> In-Reply-To: <4207C9D7.6000804@yahoo.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 4207CFC8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4207CFC6.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 christophe:01 troestler:01 wrote:01 ocamlopt:01 -inline:01 -unsafe:01 -inline:01 compiler:01 ocamlopt:01 compiler:01 ...:98 jambon:02 debian:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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