Version française
Home     About     Download     Resources     Contact us    
Browse thread
Is OCaml fast?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Isaac Gouy <igouy2@y...>
Subject: Re: Is OCaml fast?
bluestorm <bluestorm.dylc <at> gmail.com> writes:

-snip-
> With appropriate GC parameters, the very same OCaml program is exactly as fast
as C.
> 
> 
> http://shootout.alioth.debian.org/u32/performance.php?test=binarytrees
> 
> « Note: these programs are being measured with the default initial heap size -
the measurements may be very different with a larger initial heap size or GC
tuning. »
> 
> 
> C version : 12.11 secs
> OCaml version : 47.22 secs
> OCaml version with GC parameters tuned ("interesting alternative" section) :
12.67 secs



And of course you know because that GC tuned OCaml program is shown on the
benchmarks game website ;-) 

http://shootout.alioth.debian.org/u32/program.php?test=binarytrees&lang=ocaml&id=1