From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 56DFDBC84 for ; Mon, 2 May 2005 21:57:41 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j42JvegA001103 for ; Mon, 2 May 2005 21:57:40 +0200 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 VAA30506 for ; Mon, 2 May 2005 21:57:40 +0200 (MET DST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j42JvdQo001098 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 2 May 2005 21:57:40 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DSgvv-0006Bq-CS for caml-list@inria.fr; Mon, 02 May 2005 21:50:23 +0200 Received: from panic.cs.bris.ac.uk ([137.222.103.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2005 21:50:23 +0200 Received: from brown by panic.cs.bris.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2005 21:50:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Julian Brown Subject: Re: Mini ray tracer Date: Mon, 2 May 2005 19:48:58 +0000 (UTC) Organization: University of Bristol Message-ID: References: <200504281037.46186.jon@ffconsultancy.com> Reply-To: brown@cs.bris.ac.uk X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: panic.cs.bris.ac.uk User-Agent: slrn/0.9.8.1 (Debian) Sender: news X-Miltered: at nez-perce with ID 42768634.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42768633.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bris:01 tracer:01 tracer:01 ocaml:01 cheers:01 wrote:01 shootout:02 shootout:02 comparison:03 loc:05 768:90 julian:09 julian:09 2005:89 optimisation:10 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: On 2005-04-28, Jon Harrop wrote: > > I just knocked up a little ray tracer in OCaml to test its viability for the > shootout: > > http://www.ffconsultancy.com/free/ray_tracer/ > > Here, it traces a 768^2 image of 66,430 spheres in 22.51s on a 1.2GHz > Athlon-Thunderbird and in 7.24s on a 1.8GHz Athlon 64. > > I've boiled it down to 94 LOC and posted it to the shootout mailing list. Re: http://www.ffconsultancy.com/free/ray_tracer/comparison.html Interesting results, but it's kind of unfair to leave optimisation turned off for g++! What kind of results do you get with, say, -O3 -ffast-math? Cheers, Julian