Version française
Home     About     Download     Resources     Contact us    
Browse thread
Memory allocation nano-benchmark.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Frédéric_Gava <gava@u...>
Subject: Re: [Caml-list] Memory allocation nano-benchmark.
Hi,

stupid question, do you use the "-unsafe" option of ocamlopt. It is better
for arrays...

Regards,
Frédéric Gava
> The code using ordinary arrays runs in 2.8 seconds,
> using bigarray 0.7 seconds. 4 x 0.7 = 2.8.
>
> bigarray is 4 times faster to write than three level
> ordinary array.