From: Jon Harrop Date: 2006-08-04T13:15:10+09:00 Subject: Re: For performance, don't write it in C++ Jon Harrop wrote: >> Here are my 32-bit timings (language versions are the same): >> >> Compile Run >> C 0.126s 0.386s gcc -O3 -Wall >> OCaml2 0.089s 0.391s ocamlopt >> OCaml2 0.010s 10.111s ocamlc >> Java 1.615s 12.745s javac > > Here's a C++ implementation: > > C++ 0.652s 0.608s g++ -O3 -Wall For Java2 from the site and using Sun's Java 1.5 instead of GIJ 1.4.2 (d'oh!), I get: Java 0.543s 0.711s javac That's a much more respectable running time although the compile time is comparatively poor. -- Dr Jon D Harrop, Flying Frog Consultancy Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists