<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/d315d238ef80ffa3e6f6bd7774cd1fbd"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-03T22:47:32"
  subject="Re: [Caml-list] Re: Mini ray tracer"
  prev="2005/05/494124382fea8d9ec386a6d5157eb2bc"
  next="2005/05/eb071e51b74168a16837e0b94c090d7a"
  prev-in-thread="2005/05/2f3324c744b03045d65ca814cfa338e4"
  next-in-thread="2005/05/89c5d0ebb5d4b04ee4930daae8fbfdfe"
  prev-thread="2005/04/0cb1293570b0f1fd9d36e904eeee929e"
  next-thread="2005/04/677f99f4fc250f84c4b36c7594f137a9"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Mini ray tracer">
<msg 
  url="2005/04/d22b1761efb27d7b182cb9eabf245e1c"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-04-28T09:37:52"
  subject="Mini ray tracer">
<msg 
  url="2005/05/2f3324c744b03045d65ca814cfa338e4"
  from="Julian Brown &lt;brown@c...&gt;"
  author="Julian Brown"
  date="2005-05-02T19:57:41"
  subject="Re: Mini ray tracer">
<msg 
  url="2005/05/d315d238ef80ffa3e6f6bd7774cd1fbd"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-03T22:47:32"
  subject="Re: [Caml-list] Re: Mini ray tracer">
</msg>
<msg 
  url="2005/05/89c5d0ebb5d4b04ee4930daae8fbfdfe"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2005-05-04T06:22:36"
  subject="Re: [Caml-list] Re: Mini ray tracer">
<msg 
  url="2005/05/2e3229b2a6177a2463d57e2fec258450"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-04T07:27:13"
  subject="Re: [Caml-list] Re: Mini ray tracer">
<msg 
  url="2005/05/f6d48a0d367c7ff6af0411677828dd1d"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2005-05-04T11:22:21"
  subject="Re: [Caml-list] Re: Mini ray tracer">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Monday 02 May 2005 20:48, Julian Brown wrote:
&gt; Interesting results, but it's kind of unfair to leave optimisation turned
&gt; off for g++! What kind of results do you get with, say, -O3 -ffast-math?

Sorry, I just misquoted the compile line, which really did have optimisations 
on:

  g++ -O2 -march=athlon-tbird ray.cpp -o ray

-O3 and -ffast-math make little difference (OCaml is still substantially 
faster).

From my AMD64 results, it appears that g++ is having the floating point 
problem that ocamlopt usually has. Specifically, it is producing very poor FP 
performance on x86 but much better on AMD64.

Even more curiously, using single precision in the C++ version (which is 
difficult to do in the OCaml version), the performance is vastly better on 
x86 but vastly worse on AMD64?!? My uneducated guess is a float-align problem 
but I haven't really looked into it.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists

</contents>

</message>

