From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id CCD84BC37 for ; Thu, 29 Oct 2009 19:49:00 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkEAAOA6UpQW+UMgGdsb2JhbACbSAEBFCZHAwEBwxyEPQSBYg X-IronPort-AV: E=Sophos;i="4.44,647,1249250400"; d="scan'208";a="37224511" Received: from lo.gmane.org ([80.91.229.12]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 29 Oct 2009 19:49:00 +0100 Received: from list by lo.gmane.org with local (Exim 4.50) id 1N3a3O-0000nc-UM for caml-list@inria.fr; Thu, 29 Oct 2009 19:48:58 +0100 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Oct 2009 19:48:58 +0100 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Oct 2009 19:48:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: How to read different ints from a Bigarray? Date: Thu, 29 Oct 2009 18:48:29 +0000 (UTC) Message-ID: References: <87eiond3of.fsf@frosties.localdomain> <4AE87AB9.5020607@inria.fr> <87pr86b066.fsf@frosties.localdomain> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre1.0.0-11 (Linux) Sender: news X-Spam: no; 0.00; le-gall:01 bigarray:01 ocaml:01 bigarray:01 wrote:01 wrote:01 ints:01 unsafe:01 int:01 int:01 writes:01 string:02 commit:03 benchmark:04 benchmark:04 On 29-10-2009, Goswin von Brederlow wrote: > Xavier Leroy 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