Version française
Home     About     Download     Resources     Contact us    
Browse thread
How to read different ints from a Bigarray?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: How to read different ints from a Bigarray?
On 29-10-2009, Goswin von Brederlow <goswin-v-b@web.de> wrote:
> Xavier Leroy <Xavier.Leroy@inria.fr> writes:
>> Goswin von Brederlow wrote:
>
> Here are some benchmark results:
>
> get an int out of a string:
>                 C               Ocaml
>   uint8  le     19.496          17.433
>    int8  le     19.298          17.850
>   uint16 le     19.427          25.046
>    int16 le     19.383          27.664
>   uint16 be     20.502          23.200
>    int16 be     20.350          27.535
>
> get an int out of a Bigarray.Array1.t:
> 		safe		unsafe
>   uint8  le	55.194s		54.508s
>   uint64 le     80.51s		81.46s
>

Can you provide us with the corresponding code and benchmark? 

Maybe you can just commit this in libaio/test/bench.ml.

Regards,
Sylvain Le Gall