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 XAA25824; Fri, 23 Aug 2002 23:05:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 XAA25718 for ; Fri, 23 Aug 2002 23:05:48 +0200 (MET DST) Received: from mail2.tpgi.com.au (mail.tpgi.com.au [203.12.160.58]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7NL5kD21672 for ; Fri, 23 Aug 2002 23:05:47 +0200 (MET DST) Received: from ozemail.com.au (syd-ts15-2600-027.tpgi.com.au [203.213.83.27] (may be forged)) (authenticated (0 bits)) by mail2.tpgi.com.au (8.11.6/8.11.6) with ESMTP id g7NL5eq21861; Sat, 24 Aug 2002 07:05:41 +1000 Message-ID: <3D66A3A0.1090901@ozemail.com.au> Date: Sat, 24 Aug 2002 07:05:36 +1000 From: John Max Skaller User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: Oleg CC: caml-list@inria.fr Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark References: <200208181716.NAA10426@hickory.cc.columbia.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Oleg wrote: > I'm curious as to where these huge differences for these small programs come > from. Perhaps .. here single_pass xb (sum +. float x) you have a float conversion -- creates a new heap element. Try changing the tests to do integer operations, they should be comparable then. -- John Max Skaller, mailto:skaller@ozemail.com.au snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia. voice:61-2-9660-0850 ------------------- 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