Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OCaml speed
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] OCaml speed
Rolf Wester schrieb am Montag, den 15. Oktober 2001:
> ocaml. The sources I used are attached below.  Unfortunately I could
> not confirm the given cpu times which are 0.11 sec for gcc and 0.13
> for ocamlopt. My results on a Compaq Alpha True64 are 0.05 for cxx,
> 0.1 for g++ and 0.29 for ocamlopt. Does anybody have an idea what
> could be the reason for this inconsistency? Did I do anything wrong?

The Alpha/True64 is a completely different beast than an Intel/Linux
platform. The same holds for a comparison of cxx and g++. This may well
explain quite a lot.

> ocamlopt -o aa_ml unix.cmxa aa.ml

Try this instead:

  ocamlopt -unsafe -noassert -o aa_ml unix.cmxa aa.ml

This may squeeze out some cycles...

Regards,
Markus Mottl

-- 
Markus Mottl                                             markus@oefai.at
Austrian Research Institute
for Artificial Intelligence                  http://www.oefai.at/~markus
-------------------
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