caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Florian Hars <hars@bik-gmbh.de>
To: caml-list@inria.fr
Cc: jon@ffconsultancy.com
Subject: Re: [Caml-list] Re: Mini ray tracer
Date: Wed, 04 May 2005 08:24:22 +0200	[thread overview]
Message-ID: <42786A96.3030204@bik-gmbh.de> (raw)
In-Reply-To: <slrnd7d1d1.dg5.brown@panic.cs.bris.ac.uk>

Julian Brown wrote:
>> 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++! 

I did some comparisions (the ml code on that page doesn't compile, but the
fix is trivial) and told gcc 3.3.5 to actually optimize the c++ (-O2 
-march=x86-64 -msse2 -ffast-math) and the c++ was consistently faster than the 
ocaml code for detail levels of 4 and greater, marginally at 4, about 20% at a 
level of 10, twice as fast at 12, and infinitely faster at a level of 14 (the 
c++ program finished in less than three minutes, the ocaml program started to 
trigger the oom killer after about an hour, and I finally had to push the 
friendly red button labeled "reset" to get my computer back).

This looks like a suboptimal example for the speed of ocaml.

Yours, Florian.


  parent reply	other threads:[~2005-05-04  6:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-28  9:37 Jon Harrop
2005-05-02 19:48 ` Julian Brown
2005-05-03 22:47   ` [Caml-list] " Jon Harrop
2005-05-04  6:24   ` Florian Hars [this message]
2005-05-04  7:27     ` Jon Harrop
2005-05-04 11:22       ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42786A96.3030204@bik-gmbh.de \
    --to=hars@bik-gmbh.de \
    --cc=caml-list@inria.fr \
    --cc=jon@ffconsultancy.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).