From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id EC63DBC48 for ; Fri, 25 Mar 2005 10:42:42 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2P9ggLY015656 for ; Fri, 25 Mar 2005 10:42:42 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA30637 for ; Fri, 25 Mar 2005 10:42:41 +0100 (MET) Received: from alex.barettalocal.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2P9geAW015648 for ; Fri, 25 Mar 2005 10:42:41 +0100 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by alex.barettalocal.com (Postfix) with ESMTP id 71C04F3A39; Fri, 25 Mar 2005 10:42:38 +0100 (CET) Message-ID: <4243DD0D.1060100@barettadeit.com> Date: Fri, 25 Mar 2005 10:42:37 +0100 From: Alex Baretta User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason Hickey Cc: caml-list@inria.fr Subject: Re: [Caml-list] Re: Pervasives.compare output type References: <42430B3B.60408@barettadeit.com> <20050324194115.GB9518@furbychan.cocan.org> <87acosu5c9.fsf@qrnik.zagroda> <42433A1C.2060203@cs.caltech.edu> In-Reply-To: <42433A1C.2060203@cs.caltech.edu> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4243DD12.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4243DD10.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 pervasives:01 pervasives:01 baretta:01 ...:98 wrote:01 int:01 int:01 match:02 match:02 output:02 alex:03 alex:03 let:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: Jason Hickey wrote: >> >> let f1 x y = Pervasives.compare x y >> let f2 (x: int) y = Pervasives.compare x y >> let f3 x y = if x=y then Pervasives.compare "s1" "s2" else if x >> < y then -1 else 1 >> let f4 (x: int) y = if x=y then Pervasives.compare "s1" "s2" else if x >> < y then -1 else 1 >> let f5 x y = let i = Pervasives.compare x y in if i = 0 then >> Pervasives.compare "s1" "s2" else i >> let f6 (x: int) y = let i = Pervasives.compare x y in if i = 0 then >> Pervasives.compare "s1" "s2" else i >> let f7 x y = match Pervasives.compare x y with 0 -> >> Pervasives.compare "s1" "s2" | i -> i >> let f8 (x: int) y = match Pervasives.compare x y with 0 -> >> Pervasives.compare "s1" "s2" | i -> i >> >> let time name f = >> I am unsure as to how to interpret these benchmarks... Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project