From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 030BE7EE56 for ; Mon, 10 Dec 2012 01:06:19 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.175 as permitted sender) identity=mailfrom; client-ip=134.160.33.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.175 as permitted sender) identity=helo; client-ip=134.160.33.175; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AucBALkmxVCGoCGve2dsb2JhbABEvnQOAQEWEBYngh4BAQU4QBELGAkWDwkDAgECAUUTCAEBiA0MvmoEjD+BGoMpA4hdjSmFa41f X-IronPort-AV: E=Sophos;i="4.84,248,1355094000"; d="scan'208";a="165267217" Received: from postman3.riken.jp (HELO postman.riken.jp) ([134.160.33.175]) by mail4-smtp-sop.national.inria.fr with ESMTP; 10 Dec 2012 01:06:18 +0100 Received: from postman.riken.jp (postman3.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 65CA938380BD for ; Mon, 10 Dec 2012 09:06:14 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 28FA538200DC for ; Mon, 10 Dec 2012 09:06:14 +0900 (JST) Message-ID: <50C52776.2050800@riken.jp> Date: Mon, 10 Dec 2012 09:06:14 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <50C15590.1010507@riken.jp> <20121207.090650.972729327013546587.Christophe.Troestler@umons.ac.be> In-Reply-To: <20121207.090650.972729327013546587.Christophe.Troestler@umons.ac.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.12.9.235718 Subject: Re: [Caml-list] What is the fastest? Pattern matching or if then else On 12/07/2012 05:06 PM, Christophe TROESTLER wrote: > On Fri, 7 Dec 2012 11:33:52 +0900, Francois Berenger wrote: >> >> Hello, >> >> I always wondered what is the fastest (at least for integers): > > In general, you can check these things yourself: > https://github.com/Chris00/ocaml-benchmark Christophe TROESTLER even did an OPAM package for benchmark: opam update opam install benchmark Thanks! F.