[clean-list] Speed of native code

Antonio Costa Pereira costa@ufu.br
Thu, 04 Jul 2002 15:26:35 -0300


--------------0E719CCE4FFF9160A1EDDB9B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I use both languages (OCAML and Clean) a lot. I also have
many instances of implementing the same algorithm in
OCAML and Clean.  In most cases, Clean is faster than
OCAML.  You should not compare the result of optimizers
written in OCAML with  Clean. For instance,
the FFTW program  is an optimizer, that generates C.
The result  is fast, even if you use OCAML bytecode compiler,
that is very slow, since the output of the program is an optimized
and specialized C program.

In anycase,  you can compare a small program
written in Clean and OCAML, say, an implementation of the
Simplex algorithm. You will see that Clean is faster
in most cases.

Eduardo Costa



Jan Brosius wrote:

> Hello, Iwanted to hear if some benchmarks have been done with
> Clean.The most serious contender in is I think Ocamel. Itmseems that
> Ocamel compile to fast native code , much faster than e.g. Haskell.So,
> what about Clean? Cheers Jan

--------------0E719CCE4FFF9160A1EDDB9B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

I use both languages (OCAML and Clean) a lot. I also have

many instances of implementing the same algorithm in
OCAML and Clean.  In most cases, Clean is faster than
OCAML.  You should not compare the result of optimizers
written in OCAML with  Clean. For instance,
the FFTW program  is an optimizer, that generates C.
The result  is fast, even if you use OCAML bytecode compiler,
that is very slow, since the output of the program is an optimized
and specialized C program.

In anycase,  you can compare a small program
written in Clean and OCAML, say, an implementation of the
Simplex algorithm. You will see that Clean is faster
in most cases.

Eduardo Costa
 
 

Jan Brosius wrote:

Hello, Iwanted to hear if some benchmarks have been done with Clean.The most serious contender in is I think Ocamel. Itmseems that Ocamel compile to fast native code , much faster than e.g. Haskell.So, what about Clean? Cheers Jan
--------------0E719CCE4FFF9160A1EDDB9B--