Browse thread
[Caml-list] Web Development with OCaml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-07-16 (08:24) |
From: | wakita@i... |
Subject: | Re: [Caml-list] Web Development with OCaml |
i'm sorry that my comment is off the topic of web development... A few months ago, I ran the Fibonacci test for gcc 2.95 and ocamlopt on the Intel platform and saw the similar result; I was not interested in PIC at the moment. First, I thought the difference was due to inlining done by the ocamlopt but it was not the case for Fibonacci function. Comparison of the assembly code produced by the both compiler suggests that the difference is due primariry to the fact that gcc does not optimize enough argument passing to functions. Ken Wakita Tokyo Institute of Technology In message (<20010715140351.B20044@andrew.cmu.edu>) from Ari Heitner <aheitner@andrew.cmu.edu>, talking about "Re: [Caml-list] Web Development with OCaml", on Sun, 15 Jul 2001 14:03:51 -0400 > I've definitely seen Java behave slowly. But today I did a dead-simple test > (designed to avoid all the Java weaknesses): a recursive fib, and got > interesting results: > - Java was a touch faster than gcc (~10% penalty for not making the call > "static") > - gcc (2.95.4) was ~20% slower for pic. I seem to recall gcc 3.0 being > maybe 10% faster, tho it may be quite a bit faster on less moronic code > (i've heard up to 40%). but this is a moronic measure that only leans > on function-call cost -- in real code it should be much less noticeable. > no one seems to complain about either using shared libraries, or (to > be like the java servlet arch below) explicitly loading code via dlopen. > - ocaml is about 40% faster than java/gcc ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr