From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA06986; Mon, 19 Aug 2002 15:02:03 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 PAA06572 for ; Mon, 19 Aug 2002 15:02:02 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7JD21T10269 for ; Mon, 19 Aug 2002 15:02:01 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA06908 for caml-list@inria.fr; Mon, 19 Aug 2002 15:02:01 +0200 (MET DST) Date: Mon, 19 Aug 2002 15:02:01 +0200 From: Xavier Leroy To: caml-list@inria.fr Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark Message-ID: <20020819150201.B6276@pauillac.inria.fr> References: <200208181716.NAA10426@hickory.cc.columbia.edu> <15711.57520.125841.25102@beertje.william.bogus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <15711.57520.125841.25102@beertje.william.bogus>; from williamc@paneris.org on Sun, Aug 18, 2002 at 07:00:16PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > the compiler doesn't inline Array.fold_left, and hence not your > anonymous "fun" either, because it doesn't inline anything between > compilation units. Just for the record: ocamlopt does perform inlining across compilation units (via the information stored in .cmx files). What it doesn't do, however, is inlining and specialization of recursive function definitions. Two more points before I stop reading this "yet another stupid micro-benchmark" thread: * http://caml.inria.fr/ocaml/speed.html is mandatory reading before making any performance claim about OCaml. * http://www.bagley.org/~doug/shootout/ is a (rare) example of a non-stupid inter-language performance comparison. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners