From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id CC1AABC8E for ; Tue, 15 Feb 2005 15:16:03 +0100 (CET) Received: from smtp10.wanadoo.fr (smtp10.wanadoo.fr [193.252.22.21]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1FEG3cG016636 for ; Tue, 15 Feb 2005 15:16:03 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1008.wanadoo.fr (SMTP Server) with ESMTP id 7912D280017B; Tue, 15 Feb 2005 15:16:03 +0100 (CET) Received: from nono (ARouen-106-1-38-220.w80-14.abo.wanadoo.fr [80.14.203.220]) by mwinf1008.wanadoo.fr (SMTP Server) with SMTP id 1C99B2800178; Tue, 15 Feb 2005 15:16:03 +0100 (CET) X-ME-UUID: 20050215141603117.1C99B2800178@mwinf1008.wanadoo.fr Message-ID: <000c01c51369$278441c0$0100a8c0@mshome.net> From: =?iso-8859-1?Q?Fr=E9d=E9ric_Gava?= To: "Christian Szegedy" Cc: References: <420B7A7E.90504@or.uni-bonn.de> <005101c50f7f$6db0e560$d54380d9@mshome.net> <1108048745.16698.101.camel@pelican.wigram> <014801c50f8e$a08e9a40$d54380d9@mshome.net> <015f01c50f99$e8a57e60$d54380d9@mshome.net> <420BBC7D.5070103@t-online.de> <002401c5101b$4130b640$a2f40b50@mshome.net> <1108127068.16698.320.camel@pelican.wigram> <20050211210729.GA466@first.in-berlin.de> <1108169091.3474.16.camel@pelican.wigram> Subject: Re: [Caml-list] Memory allocation nano-benchmark. Date: Tue, 15 Feb 2005 15:17:59 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Miltered: at concorde with ID 42120423.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; gava:01 gava:01 caml-list:01 -unsafe:01 ocamlopt:01 arrays:01 arrays:01 bigarray:01 bigarray:01 12.:98 ...:98 frederic:03 frederic:03 memory:08 runs:09 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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.